/mobile Handheld Friendly website

÷

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

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


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Ruby JRuby programs faster? Approximately.

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

 Ruby JRuby used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch-redux1/497×±
 n-body±98×±
 k-nucleotide±±
 binary-trees †±±
 regex-dna±±
 mandelbrot±
 pidigits41×±
 spectral-norm18×±
 fasta±
 reverse-complement †10×±
 Ruby JRuby used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/41/4±

† possible mismatch - one-core program compared to multi-core program.

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

 3 : Are the Ruby JRuby programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch-redux 
Ruby JRuby867.57865.50597,824384  83% 17% 0% 0%
Ruby 2.03,235.413,236.686,152384  0% 100% 0% 0%
 n-body 
Ruby JRuby549.15546.45605,5241137  0% 0% 52% 48%
Ruby 2.0667.68667.846,1721137  99% 0% 1% 0%
 k-nucleotide 
Ruby JRuby561.17176.19939,416637  94% 69% 74% 83%
Ruby 2.0679.76201.03128,768637  88% 84% 70% 98%
 binary-trees 
Ruby JRuby600.36228.431,166,852439  82% 53% 58% 72% †
Ruby 2.0203.16203.36436,644439  0% 78% 22% 0% †
 regex-dna 
Ruby JRuby46.9718.762,039,392417  71% 70% 59% 51%
Ruby 2.030.6713.88290,688501  41% 89% 41% 50%
 mandelbrot 
Ruby JRuby3,511.96900.99720,548925  97% 98% 98% 98%
Ruby 2.02,135.33534.7788,968925  100% 100% 100% 100%
 pidigits 
Ruby JRuby20.1917.70599,884242  7% 95% 9% 4%
Ruby 2.09.509.5214,800242  0% 0% 0% 100%
 spectral-norm 
Ruby JRuby866.86221.50621,196776  98% 98% 99% 98%
Ruby 2.0402.52107.2933,912828  95% 94% 94% 93%
 fasta 
Ruby JRuby225.70227.28606,236760  50% 48% 4% 2%
Ruby 2.0106.86106.92223,864772  92% 0% 8% 0%
 reverse-complement 
Ruby JRuby24.6519.741,312,704255  43% 59% 12% 11% †
Ruby 2.09.219.22128,284255  0% 62% 38% 0% †
 fasta-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Ruby JRuby and Ruby 2.0 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.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_11-b21 [linux-amd64]

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

JRuby Performance Tuning

"So You Want To Optimize Ruby" (So You want to optimize an implementation of the Ruby language.)

Download: http://jruby.org/download

Revised BSD license

  Home   Conclusions   License   Play