÷

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

 Java 6 -server used what fraction? used how many times more? 
Benchmark Time Memory Code
 spectral-norm1/170
 n-body1/115±
 recursive1/76±
 mandelbrot1/48
 fasta1/36
 binary-trees1/351/2±
 nsieve-bits1/23
 fannkuch1/21
 nsieve1/111/6±
 partial-sums1/4
 pidigits1/2
 k-nucleotide1/2
 reverse-complement1/2
 regex-dna

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 spectral-norm 
Java 6 -server24.0110,008514  
Perl4,089.082,468334  
 n-body 
Java 6 -server14.7511,5241424  
Perl1,697.591,9361140  
 recursive 
Java 6 -server0.4811,628427  
Perl36.282,080380  
 mandelbrot 
Java 6 -server0.3310,944623  
Perl15.931,532311  
 fasta 
Java 6 -server21.469,1841240  
Perl773.421,856791  
 binary-trees 
Java 6 -server6.8926,808603  
Perl239.3647,936541  
 nsieve-bits 
Java 6 -server1.0611,480523  
Perl24.212,132253  
 fannkuch 
Java 6 -server0.288,872555  
Perl5.811,492348  
 nsieve 
Java 6 -server2.2520,592296  
Perl25.45121,904290  
 partial-sums 
Java 6 -server4.8810,648711  
Perl17.411,476389  
 pidigits 
Java 6 -server0.238,720938  
Perl0.542,404385  
 k-nucleotide 
Java 6 -server15.8970,9641052  
Perl32.0742,816359  
 reverse-complement 
Java 6 -server1.3058,932592  
Perl1.9938,360298  
 regex-dna 
Java 6 -server7.8175,892921  
Perl1.2322,120471  
 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 Perl 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 Perl 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