Compare the performance of Java 6 -server programs against some other language implementation.

For more information about the Java implementation we measured see ↓ about Java 6 -server.

Compare to:

 Java 6 -server comparison summary


1/2 1/3 1/4 … Java 6 -server is better
Programs Time Memory Use Source Size Reduced N
sum-file1/212±
spectral-norm±11±
n-body±12±
chameneos-redux±12±
mandelbrot±121/2
nsieve±4±
fasta±12±
pidigits±9±
nsieve-bits±4±
regex-dna±61/2
fannkuch±11±
binary-trees24±
k-nucleotide28±
partial-sums210±
reverse-complement24±
recursive312±

± look at the measurements

 Java 6 -server comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 sum-file 
Java 6 -server #44.109,972226  
C++ GNU g++ #26.47852260  
 spectral-norm 
Java 6 -server24.0110,008514  
C++ GNU g++23.84900442  
 n-body 
Java 6 -server #214.7511,5241424  
C++ GNU g++ #214.629321705  
 chameneos-redux 
Java 6 -server #217.5112,0921429  
C++ GNU g++16.691,0041729  
 mandelbrot 
Java 6 -server #33.2411,092623  
C++ GNU g++ #43.028961097  
 nsieve 
Java 6 -server #32.2520,592296  
C++ GNU g++ #32.085,764313  
 fasta 
Java 6 -server #221.469,1841240  
C++ GNU g++ #418.727881248  
 pidigits 
Java 6 -server #21.928,992938  
C++ GNU g++ #21.661,052652  
 nsieve-bits 
Java 6 -server #45.0413,364523  
C++ GNU g++3.863,316494  
 regex-dna 
Java 6 -server #47.8175,892921  
C++ GNU g++ #35.5812,7041588  
 fannkuch 
Java 6 -server #411.058,884555  
C++ GNU g++ #27.78844554  
 binary-trees 
Java 6 -server #26.8926,808603  
C++ GNU g++ #24.476,996541  
 k-nucleotide 
Java 6 -server15.8970,9641052  
C++ GNU g++ #37.469,3041380  
 partial-sums 
Java 6 -server #39.158,488474  
C++ GNU g++ #34.05852531  
 reverse-complement 
Java 6 -server #41.3058,932592  
C++ GNU g++ #30.5413,288810  
 recursive 
Java 6 -server6.7612,044427  
C++ GNU g++ #22.401,008566  

 about Java 6 -server

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