vs

 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 program.

(Memory use is only compared for tasks that require memory to be allocated.)


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 program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Ruby JRuby used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch-redux1/2 ±
 n-body1/2 ±
 pidigits †± ±
 fasta± ±
 binary-trees1/3
 regex-dna±
 mandelbrot ±
 reverse-complement †10×±
 spectral-norm † 1/3
 k-nucleotide †1/2
 Ruby JRuby used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/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 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch-redux 
Ruby JRuby1,296.44357.64684,4681426  90% 92% 99% 82%
Ruby3,197.06828.6030,5921426  96% 98% 96% 97%
 n-body 
Ruby JRuby382.88375.10755,9801137  23% 23% 28% 29%
Ruby640.09640.267,1601137  1% 0% 0% 100%
 pidigits 
Ruby JRuby18.5412.70666,456242  18% 46% 66% 17% †
Ruby10.9610.9876,712240  0% 1% 100% 1% †
 fasta 
Ruby JRuby214.27207.73664,912760  27% 35% 20% 22%
Ruby148.59148.667,652987  18% 23% 32% 29%
 binary-trees 
Ruby JRuby157.7997.791,168,552402  52% 25% 25% 68%
Ruby169.6857.70257,3881123  65% 97% 67% 67%
 regex-dna 
Ruby JRuby49.5816.58787,976507  69% 67% 81% 84%
Ruby28.739.65118,660529  66% 65% 67% 100%
 mandelbrot 
Ruby JRuby3,308.31847.98762,944866  98% 98% 98% 98%
Ruby1,865.72467.2365,1761019  100% 100% 100% 100%
 reverse-complement 
Ruby JRuby24.8418.241,284,372255  22% 14% 14% 88% †
Ruby8.218.22132,256255  1% 0% 0% 100% †
 spectral-norm 
Ruby JRuby250.63243.93673,640326  21% 24% 31% 28% †
Ruby391.41102.2041,320828  96% 96% 95% 95% †
 k-nucleotide 
Ruby JRuby85.3580.181,870,964449  8% 37% 20% 45% †
Ruby37.3512.36457,396996  70% 69% 97% 68% †
 fasta-redux 
No program
Ruby1.141.148,452772  4% 32% 1% 71%

† 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 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 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.16.1 (1.9.3p392) 2014-10-28 4e93f31 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_25-b17 +jit [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