÷

 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
 spectral-norm1/136±
 pidigits1/131±±
 fasta1/105±
 n-body1/101±
 nsieve-bits1/421/2
 recursive1/37±±
 mandelbrot1/29
 binary-trees1/271/3±
 fannkuch1/22
 nsieve1/10±
 k-nucleotide1/6±
 partial-sums1/3±
 reverse-complement1/31/2±
 regex-dna1/2±

± 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
 spectral-norm 
Java 6 -server27.1526,424514  
PHP3,698.2223,392315  
 pidigits 
Java 6 -server3.3111,728938  
PHP432.387,892736  
 fasta 
Java 6 -server19.9610,0961240  
PHP2,094.326,4001029  
 n-body 
Java 6 -server27.5410,8881430  
PHP2,772.216,2681289  
 nsieve-bits 
Java 6 -server0.9410,324517  
PHP39.4817,944317  
 recursive 
Java 6 -server0.689,652427  
PHP25.536,984315  
 mandelbrot 
Java 6 -server0.489,948623  
PHP14.136,312395  
 binary-trees 
Java 6 -server7.5624,012603  
PHP201.0182,456493  
 fannkuch 
Java 6 -server0.489,976761  
PHP10.686,188484  
 nsieve 
Java 6 -server1.9818,708293  
PHP20.6911,268221  
 k-nucleotide 
Java 6 -server15.7566,5401052  
PHP97.2626,588818  
 partial-sums 
Java 6 -server6.859,460470  
PHP21.516,124367  
 reverse-complement 
Java 6 -server1.3935,360588  
PHP3.7465,724508  
 regex-dna 
Java 6 -server1.4818,344711  
PHP2.319,496675  
 chameneos-redux
   No programs

 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 HotSpot(TM) Server VM (build 1.6.0-b105, 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