÷

 Step 1 : Are the Java 6 -server programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Java 6 -server program used compared to the fastest Python CPython program.


 Step 2 : Are the Java 6 -server programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Java 6 -server program used compared to the fastest Python CPython program.

 Java 6 -server used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch1/180
 mandelbrot1/62
 n-body1/61±
 spectral-norm1/601/2
 chameneos-redux1/31
 fasta1/27
 binary-trees1/24±±
 k-nucleotide1/6±
 reverse-complement1/2±
 regex-dna±
 pidigits±67×

± read the measurements and then read the program source code.

 Step 3 : Are the Java 6 -server programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest Java 6 -server program are shown for comparison against measurements of the fastest Python CPython program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch 
Java 6 -server65.4317.9413,9401150  99% 99% 99% 68%
Python CPython3,232.093,231.902,852387  36% 8% 48% 7%
 mandelbrot 
Java 6 -server45.2111.5444,768903  98% 98% 98% 99%
Python CPython2,882.02720.5423,468425  100% 100% 100% 100%
 n-body 
Java 6 -server23.7023.7412,6081424  0% 100% 0% 0%
Python CPython1,443.101,443.022,9321105  86% 7% 1% 7%
 spectral-norm 
Java 6 -server15.934.0712,736950  97% 100% 98% 97%
Python CPython942.71242.9423,632428  98% 97% 98% 95%
 chameneos-redux 
Java 6 -server13.675.8212,9521377  59% 50% 54% 60%
Python CPython237.86180.723,024869  43% 32% 29% 27%
 fasta 
Java 6 -server7.757.7212,8081240  1% 100% 0% 1%
Python CPython208.55208.542,928779  61% 23% 4% 12%
 binary-trees 
Java 6 -server14.1311.68460,636603  28% 24% 55% 14%
Python CPython980.23279.06674,024626  86% 89% 85% 90%
 k-nucleotide 
Java 6 -server46.2813.60476,3161602  86% 92% 81% 81%
Python CPython277.7284.94441,680519  54% 94% 82% 96%
 reverse-complement 
Java 6 -server3.383.32473,716592  0% 2% 1% 98%
Python CPython6.786.78561,860288  0% 40% 61% 0%
 regex-dna 
Java 6 -server29.5011.81694,708929  87% 54% 54% 55%
Python CPython11.7311.73196,492314  0% 0% 100% 0%
 pidigits 
Java 6 -server59.1858.03240,912800  34% 23% 31% 14%
Python CPython54.7454.743,596407  100% 0% 0% 0%

 Step 4 : Are there other Java 6 -server programs for these benchmarks?

Remember - those are just the fastest Java 6 -server and Python CPython programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Java 6 -server.

Maybe one of those other Java 6 -server programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Java 6 -server and Python CPython programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Java 6 -server : ubiquitous jit server virtual machine 

java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)

Home Page: http://java.sun.com/j2se/

Download: http://java.sun.com/j2se/downloads/

"Remember how HotSpot works. It starts by running your program with an interpreter. When it discovers that some method is "hot" -- that is, executed a lot, either because it is called a lot or because it contains loops that loop a lot -- it sends that method off to be compiled. After that one of two things will happen, either the next time the method is called the compiled version will be invoked (instead of the interpreted version) or the currently long running loop will be replaced, while still running, with the compiled method. The latter is known as "on stack replacement" and exists in the 1.3/1.4 HotSpot based systems."

Benchmarking the Java HotSpot VM

Revised BSD license

  Home   Flawed   Fastest   License   Help