÷

 Are the Java 6 -server programs faster?

Do the Java 6 -server programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Java 6 -server programs use a fraction of the time used by other programs or do they use several times more?


 Java 6 -server used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ n-body1/137±
↓ recursive1/101±±
↓ mandelbrot1/100
↓ fannkuch1/70±
↓ fasta1/32
↓ nsieve-bits1/29±
↓ chameneos-redux1/16
↓ binary-trees1/14±
↓ sum-file1/5
↓ nsieve1/41/2±
↓ k-nucleotide1/4
↓ partial-sums1/3±
↓ reverse-complement1/2±
↓ pidigits±
↓ regex-dna±

± look at the measurements and then look at the programs.

 Are the Java 6 -server programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 n-body 
Java 6 -server14.7511,5241424  
Python CPython2,015.782,4401027  
 recursive 
Java 6 -server6.7612,044427  
Python CPython683.7414,296360  
 mandelbrot 
Java 6 -server3.2411,092623  
Python CPython323.702,420303  
 fannkuch 
Java 6 -server11.058,884555  
Python CPython772.842,404411  
 fasta 
Java 6 -server21.469,1841240  
Python CPython692.042,420779  
 nsieve-bits 
Java 6 -server5.0413,364523  
Python CPython144.4012,436288  
 chameneos-redux 
Java 6 -server17.5112,0921429  
Python CPython275.842,576866  
 binary-trees 
Java 6 -server6.8926,808603  
Python CPython93.4116,116418  
 sum-file 
Java 6 -server4.109,972226  
Python CPython20.752,44477  
 nsieve 
Java 6 -server2.2520,592296  
Python CPython8.5735,220246  
 k-nucleotide 
Java 6 -server15.8970,9641052  
Python CPython58.4525,208475  
 partial-sums 
Java 6 -server9.158,488474  
Python CPython27.412,476395  
 reverse-complement 
Java 6 -server1.3058,932592  
Python CPython2.7349,072288  
 pidigits 
Java 6 -server1.928,992938  
Python CPython2.062,928476  
 regex-dna 
Java 6 -server7.8175,892921  
Python CPython6.0420,516342  
 spectral-norm 
Java 6 -server24.0110,008514  
No Python CPython

 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