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/4 ±
 n-body1/2 ±
 mandelbrot1/2 ±
 spectral-norm± ±
 binary-trees±±
 fasta± ±
 pidigits ±
 regex-dna±
 k-nucleotide1/2
 reverse-complement10×±
 Ruby JRuby used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/41/41/2±

± 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 JRuby680.47680.74679,112384  1% 0% 0% 100%
Ruby2,591.172,592.107,416384  0% 1% 0% 100%
 n-body 
Ruby JRuby376.49377.15752,5001137  1% 1% 1% 100%
Ruby660.09660.307,1641137  1% 0% 0% 100%
 mandelbrot 
Ruby JRuby1,102.711,104.48668,536307  0% 1% 1% 100%
Ruby1,826.951,827.587,708307  1% 1% 1% 100%
 spectral-norm 
Ruby JRuby249.37249.79677,572326  0% 1% 1% 100%
Ruby340.60340.719,000326  0% 1% 0% 100%
 binary-trees 
Ruby JRuby201.82202.061,017,040439  1% 1% 1% 100%
Ruby163.13163.29265,080402  1% 1% 0% 100%
 fasta 
Ruby JRuby198.39200.11661,884760  1% 1% 1% 100%
Ruby147.56147.637,672987  1% 1% 1% 100%
 pidigits 
Ruby JRuby17.3817.41660,360240  1% 0% 1% 100%
Ruby10.9310.9576,836240  0% 1% 1% 100%
 regex-dna 
Ruby JRuby40.4540.48981,456343  1% 0% 0% 100%
Ruby25.2325.24145,012442  0% 0% 1% 100%
 k-nucleotide 
Ruby JRuby86.1086.231,875,096449  1% 0% 0% 100%
Ruby37.0137.04457,952996  1% 1% 0% 100%
 reverse-complement 
Ruby JRuby24.2524.271,282,636255  0% 1% 1% 100%
Ruby8.228.23132,008255  0% 1% 0% 100%
 fasta-redux 
No program
Ruby1.131.138,452772  0% 2% 0% 100%

 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