/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/498×±
 mandelbrot1/298×±
 n-body±98×±
 spectral-norm±79×
 k-nucleotide±±
 regex-dna±±
 binary-trees±±
 pidigits40×±
 fasta±
 reverse-complement±
 Ruby JRuby used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/41/4±±

± 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 JRuby809.08809.40599,808384  0% 0% 0% 100%
Ruby 2.03,341.033,341.916,148384  0% 0% 0% 100%
 mandelbrot 
Ruby JRuby929.63931.19599,016307  0% 0% 0% 100%
Ruby 2.01,832.091,832.556,136307  0% 0% 0% 100%
 n-body 
Ruby JRuby524.17525.00602,3121137  0% 0% 0% 100%
Ruby 2.0666.58666.726,1721137  0% 0% 0% 100%
 spectral-norm 
Ruby JRuby252.52252.96613,860776  0% 0% 0% 100%
Ruby 2.0320.35320.457,732326  0% 0% 0% 100%
 k-nucleotide 
Ruby JRuby460.10460.99925,096540  0% 0% 0% 100%
Ruby 2.0544.77545.08227,564540  0% 0% 0% 100%
 regex-dna 
Ruby JRuby41.6441.682,039,936417  0% 0% 0% 100%
Ruby 2.030.0730.09393,896417  0% 0% 0% 100%
 binary-trees 
Ruby JRuby293.65294.00994,648412  0% 0% 0% 100%
Ruby 2.0199.54199.69436,916439  0% 0% 0% 100%
 pidigits 
Ruby JRuby20.0820.15602,740242  0% 0% 0% 100%
Ruby 2.09.489.4914,988242  0% 0% 1% 100%
 fasta 
Ruby JRuby225.77230.92604,960760  0% 0% 0% 100%
Ruby 2.0106.88106.93223,864772  0% 0% 0% 100%
 reverse-complement 
Ruby JRuby24.3624.441,036,344255  0% 0% 0% 100%
Ruby 2.09.039.04128,252255  0% 0% 0% 100%
 fasta-redux
   No programs

 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) 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