÷

 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.


 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/5±
 fannkuch1/485×±
 mandelbrot1/3105×±
 n-body1/3105×±
 spectral-norm1/354×±
 k-nucleotide1/2±
 fasta±±
 chameneos-redux±36×±
 pidigits±16×±
 regex-dna±
 reverse-complement±

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

 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 JRuby347.74264.082,053,612412  20% 74% 23% 15%
Ruby MRI1,253.731,253.65781,228412  0% 0% 100% 0%
 fannkuch 
Ruby JRuby1,804.831,792.36220,648340  65% 1% 1% 33%
Ruby MRI6,738.696,738.272,584340  0% 0% 0% 100%
 mandelbrot 
Ruby JRuby3,613.293,596.58217,384313  17% 30% 30% 23%
Ruby MRI12,196.2812,195.562,064313  26% 0% 39% 34%
 n-body 
Ruby JRuby1,399.401,391.41228,3721137  1% 47% 52% 0%
Ruby MRI4,058.304,058.052,1681137  0% 0% 100% 0%
 spectral-norm 
Ruby JRuby793.01788.60230,184292  1% 1% 1% 99%
Ruby MRI2,247.442,247.314,288292  0% 1% 0% 100%
 k-nucleotide 
Ruby JRuby515.11499.20534,384420  2% 33% 66% 2%
Ruby MRI853.73853.68166,340420  0% 0% 100% 0%
 fasta 
Ruby JRuby458.88455.88311,544744  26% 23% 18% 34%
Ruby MRI654.81654.84197,644732  0% 1% 0% 100%
 chameneos-redux 
Ruby JRuby319.83147.3495,944928  45% 44% 56% 54%
Ruby MRI158.27158.262,656928  0% 0% 100% 0%
 pidigits 
Ruby JRuby42.4140.19235,772518  2% 1% 99% 4%
Ruby MRI27.6027.6014,324518  0% 0% 100% 0%
 regex-dna 
Ruby JRuby81.0177.02551,716323  4% 8% 92% 3%
Ruby MRI50.2150.21350,236323  0% 100% 0% 0%
 reverse-complement 
Ruby JRuby19.8218.26504,052255  5% 42% 6% 55%
Ruby MRI8.508.50246,712255  0% 0% 100% 0%

 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) 64-Bit Server VM 1.6.0_14) [amd64-java]

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

Download: http://jruby.org/download

Revised BSD license