/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/5120×±
 n-body1/3120×±
 mandelbrot1/211×±
 binary-trees †1/2±
 k-nucleotide±±
 regex-dna±±
 spectral-norm±24×±
 pidigits±44×±
 fasta±±
 reverse-complement †±
 Ruby JRuby used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/51/51/2±±

† 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 JRuby899.26897.20583,560384  0% 33% 48% 20%
Ruby 2.04,122.874,124.154,864384  29% 69% 4% 1%
 n-body 
Ruby JRuby566.52564.13585,7961137  52% 0% 0% 48%
Ruby 2.01,589.191,589.684,8841137  69% 10% 22% 1%
 mandelbrot 
Ruby JRuby2,875.34801.13698,732925  91% 95% 89% 89%
Ruby 2.06,153.431,548.3166,512925  100% 100% 100% 99%
 binary-trees 
Ruby JRuby204.38126.34879,972439  22% 22% 96% 21% †
Ruby 2.0231.93232.04393,696439  86% 0% 0% 15% †
 k-nucleotide 
Ruby JRuby557.33182.01920,168540  88% 80% 86% 92%
Ruby 2.0836.88247.46128,020637  94% 74% 96% 76%
 regex-dna 
Ruby JRuby45.7418.651,966,804417  51% 50% 87% 58%
Ruby 2.041.5519.37262,996501  88% 37% 49% 41%
 spectral-norm 
Ruby JRuby766.69199.43597,500776  98% 97% 97% 98%
Ruby 2.0711.89186.3425,092828  97% 95% 96% 96%
 pidigits 
Ruby JRuby25.7123.24580,076242  6% 5% 2% 99%
Ruby 2.019.3319.3613,220242  1% 0% 100% 1%
 fasta 
Ruby JRuby245.83245.59584,152760  56% 8% 8% 30%
Ruby 2.0176.22178.52185,964772  53% 30% 15% 4%
 reverse-complement 
Ruby JRuby24.2019.281,026,664255  3% 100% 12% 11% †
Ruby 2.010.1610.17127,452255  0% 0% 1% 100% †
 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.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) Server VM 1.7.0_11-b21 [linux-i386]

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