关于Java的速度
可能是认为C++快的人把此辩论给删了(请版主证实一下,如果不是你删的,请恢复此文),不过幸好我有备份
主 题: 关于Java的真相,JAVAer一定要看
又有人在说Java很慢,Java速度已经达到或超过C++了,请大家不要被偏见迷惑。如果再有人对你说同样的事情,请把这些文章给他看
The Java is Faster than C++ and C++ Sucks Unbiased Benchmark
http://kano.net/javabench/
Java与C++性能对比:
http://www.philippsen.com/JGI2001/finalpapers/18500097.pdf
Java pulling ahead? Performance of Java versus C++
http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
http://www.tommti-systems.de/go.html?http://www.tommti-systems.de/main-Dateien/reviews/languages/benchmarks.html
http://mag.vchelp.net/200312/download/wdn200313.pdf
http://www.javaperformancetuning.com/news/qotm028.shtml
http://www.aceshardware.com/Spades/read.php?article_id=154
http://osnews.com/story.php?news_id=5602&page=3
http://cpp.student.utwente.nl/benchmark/
http://www.kano.net/javabench/data
=====================================
另外补充几篇数据和理论文章。
Performance tests show Java as fast as C++
http://www.javaworld.com/javaworld/jw-02-1998/jw-02-jperf_p.html
JIT Optimization techniques :
Dataflow analysis
Elimination of redundant tests
Translation from stack operations into register operations
Code scheduling
Reduction of memory accesses by register allocation
Method inlining
Dead-code elimination
Elimination of common sub-expression
Loop versioning
Versioning of virtual method calls
Constant propagation
http://www.trl.ibm.com/projects/jit/detail_e2.htm
新的JIT理论:
JIT compiler
– Method invocation optimization[OOPSLA00][JVM02]
– Exception optimization[ASPLOS00][OOPSLA01][PACT02]
– Profiling based optimization[JG00][PLDI03][PACT03]
– Float optimization[JVM02][ICS02]
– 64bit architecture optimization[PLDI02]
– Register allocation[PLDI02]
– Data prefetch[PLDI03]
– Instruction Scheduling[CGO03]
– Compiler overview[JG99][IBMSysJournal00][OOPSLA03]
Runtime systems
– Fast lock[OOPSLA99][OOPSLA02][ECOOP04]
– Fast interpreter[ASPLOS02]
http://www.is.titech.ac.jp/ppl2004/proceedings/ishizaki_slides.pdf
http://act.it.sohu.com/book/chapter.php?id=51&volume=1&chapter=9
http://act.it.sohu.com/book/serialize.php?id=51