/mobile Handheld Friendly website

÷

 Step 1 : Are the Ruby JRuby 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 Ruby JRuby program used compared to the fastest Ruby 1.9 program.


Look at speed another way - look at a box plot of Time-used data.

 Step 2 : Are the Ruby JRuby 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 Ruby JRuby program used compared to the fastest Ruby 1.9 program.

 Ruby JRuby used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch-redux1/317×±
 mandelbrot1/2±
 n-body±13×±
 regex-dna±±
 k-nucleotide±±
 binary-trees±±
 pidigits±±
 fasta1/2±
 spectral-norm±
 reverse-complement±
 Ruby JRuby used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/31/3±±

± 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 ~ speed and size.

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch-redux 
Ruby JRuby1,704.461,682.6556,868422  22% 27% 26% 27%
Ruby 1.94,368.024,369.203,400422  0% 0% 100% 0%
 mandelbrot 
Ruby JRuby3,051.76865.91136,584925  89% 88% 88% 89%
Ruby 1.95,296.441,330.6457,684925  100% 100% 100% 100%
 n-body 
Ruby JRuby1,147.251,040.2346,3801137  30% 26% 25% 28%
Ruby 1.91,408.801,409.183,6681137  88% 0% 0% 12%
 regex-dna 
Ruby JRuby44.0915.77556,048501  70% 86% 65% 59%
Ruby 1.938.1417.99294,228501  91% 36% 40% 46%
 k-nucleotide 
Ruby JRuby532.53164.67499,800637  92% 84% 79% 70%
Ruby 1.9586.70172.64126,136637  95% 96% 75% 76%
 binary-trees 
Ruby JRuby462.66222.48860,400413  37% 90% 45% 37%
Ruby 1.9226.77226.88210,372413  0% 0% 0% 100%
 pidigits 
Ruby JRuby26.8524.9746,172242  3% 60% 41% 4%
Ruby 1.916.9316.9511,420242  0% 0% 0% 100%
 fasta 
Ruby JRuby252.04251.71102,036987  24% 19% 25% 34%
Ruby 1.9136.61137.45182,728762  58% 1% 5% 37%
 spectral-norm 
Ruby JRuby1,095.05352.1463,180776  78% 78% 78% 78%
Ruby 1.9660.30176.8218,820828  94% 95% 93% 92%
 reverse-complement 
Ruby JRuby20.9917.78760,600255  9% 8% 99% 4%
Ruby 1.98.678.68174,744255  0% 0% 100% 0%
 fasta-redux
   No programs

 Step 4 : Are there other Ruby JRuby programs for these benchmarks?

Remember - those are just the fastest Ruby JRuby and Ruby 1.9 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ruby JRuby.

Maybe one of those other Ruby JRuby programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Ruby JRuby and Ruby 1.9 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.

 Ruby JRuby : everything is an object scripting for jvm 

jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Server VM 1.7.0_04) [linux-i386-java]

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

Download: http://jruby.org/download

Revised BSD license

  Home   Conclusions   License   Help