÷

 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 PHP 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 PHP program.

 Java 6 -server used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body1/161±
 spectral-norm1/123±
 fasta1/82±
 recursive1/53±
 mandelbrot1/28
 fannkuch1/27±
 nsieve-bits1/25±
 binary-trees1/251/3±
 nsieve1/6±
 k-nucleotide1/5±
 partial-sums1/4
 reverse-complement1/2±±
 regex-dna±±±
 pidigits±

± 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 PHP program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
Java 6 -server14.7511,5241424  
PHP2,381.865,6361289  
 spectral-norm 
Java 6 -server24.0110,008514  
PHP2,946.157,188315  
 fasta 
Java 6 -server21.469,1841240  
PHP1,755.915,5761029  
 recursive 
Java 6 -server0.4811,628427  
PHP25.446,316315  
 mandelbrot 
Java 6 -server0.3310,944623  
PHP9.435,488395  
 fannkuch 
Java 6 -server0.288,872555  
PHP7.625,500484  
 nsieve-bits 
Java 6 -server1.0611,480523  
PHP26.7717,128317  
 binary-trees 
Java 6 -server6.8926,808603  
PHP173.2581,648493  
 nsieve 
Java 6 -server2.2520,592296  
PHP13.3110,516221  
 k-nucleotide 
Java 6 -server15.8970,9641052  
PHP79.7830,336818  
 partial-sums 
Java 6 -server4.8810,648711  
PHP17.815,504367  
 reverse-complement 
Java 6 -server1.3058,932592  
PHP2.5839,696508  
 regex-dna 
Java 6 -server7.8175,892921  
PHP9.20106,752675  
 pidigits 
Java 6 -server0.238,720938  
PHP0.201,820537  
 chameneos-redux 
Java 6 -server0.4612,0721429  
No program

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

Remember - those are just the fastest Java 6 -server and PHP 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 PHP 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_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode, sharing)

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