÷

 Step 1 : Are the Ruby JRuby programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby JRuby program used compared to the fastest Ruby MRI program.


 Step 2 : Are the Ruby JRuby programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

Each table row shows, for one named benchmark, how much the fastest Ruby JRuby program used compared to the fastest Ruby MRI program.

 Ruby JRuby used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 binary-trees1/4±
 fannkuch1/449×±
 mandelbrot1/358×± 4,000
 n-body1/358×±
 spectral-norm1/336×±
 k-nucleotide1/2±
 fasta±±±
 chameneos-redux±29×±
 pidigits±±
 regex-dna±±
 reverse-complement±

± read the measurements and then read the program source code.

 Step 3 : Are the Ruby JRuby programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest Ruby JRuby program are shown for comparison against measurements of the fastest Ruby MRI program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 binary-trees 
Ruby JRuby380.75273.451,406,184412  26% 32% 17% 64%
Ruby MRI1,070.441,070.38457,788412  1% 100% 1% 1%
 fannkuch 
Ruby JRuby1,890.961,881.3192,472340  12% 6% 34% 48%
Ruby MRI6,779.966,779.551,888340  0% 100% 0% 0%
 mandelbrot N = 4,000 reduced workload 
Ruby JRuby218.15217.1890,084313  0% 1% 99% 1%
Ruby MRI737.09737.051,564313  75% 24% 0% 0%
 n-body 
Ruby JRuby1,414.441,407.5296,6321137  1% 1% 99% 1%
Ruby MRI3,982.803,982.551,6521137  0% 100% 0% 0%
 spectral-norm 
Ruby JRuby898.94896.9595,456292  0% 18% 82% 0%
Ruby MRI2,251.472,251.332,676292  0% 0% 0% 100%
 k-nucleotide 
Ruby JRuby523.73509.53423,736420  38% 61% 2% 2%
Ruby MRI843.59843.54147,980420  0% 0% 0% 100%
 fasta 
Ruby JRuby526.26523.53200,928744  0% 8% 92% 0%
Ruby MRI630.13630.12245,868732  0% 41% 1% 58%
 chameneos-redux 
Ruby JRuby325.18149.2657,096928  44% 43% 56% 56%
Ruby MRI131.29131.281,956928  100% 0% 0% 0%
 pidigits 
Ruby JRuby69.7067.36101,248518  2% 1% 99% 2%
Ruby MRI53.8153.8113,924518  0% 0% 0% 100%
 regex-dna 
Ruby JRuby87.4184.49536,144323  4% 1% 1% 96%
Ruby MRI58.3958.39254,336323  0% 0% 0% 100%
 reverse-complement 
Ruby JRuby20.1818.27467,396255  7% 6% 91% 7%
Ruby MRI10.0910.09197,348255  0% 98% 0% 0%

 Measurements for all the accepted programs

 Ruby JRuby : everything is an object scripting for jvm 

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Server VM 1.6.0_16) [i386-java]

Home Page: 100% Pure-Java Implementation of the Ruby Programming Language

Download: http://jruby.org/download

Revised BSD license