/mobile Handheld Friendly website

÷

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

Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby 2.0 program used compared to the fastest Ruby JRuby 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 2.0 programs faster? Approximately.

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

 Ruby 2.0 used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits1/3
 reverse-complement1/21/8±
 fasta±1/3±
 regex-dna±1/6±
 binary-trees±1/2±
 k-nucleotide1/81/2
 spectral-norm1/24
 n-body1/120±
 fannkuch-redux1/120±
 mandelbrot1/120±
 Ruby 2.0 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/31/3±±

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

 3 : Are the Ruby 2.0 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 2.0 program are shown for comparison against measurements of the fastest Ruby JRuby program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Ruby 2.09.439.452,008,452653  0% 0% 0% 100%
Ruby JRuby25.5325.58581,996242  0% 0% 0% 100%
 reverse-complement 
Ruby 2.010.1710.18127,452255  0% 0% 0% 100%
Ruby JRuby23.7923.811,035,904255  0% 0% 0% 100%
 fasta 
Ruby 2.0179.05181.61188,088772  0% 0% 0% 100%
Ruby JRuby250.90254.52583,812760  0% 0% 0% 100%
 regex-dna 
Ruby 2.041.4641.48312,596417  0% 0% 0% 100%
Ruby JRuby44.0544.091,966,524501  0% 0% 0% 100%
 binary-trees 
Ruby 2.0229.52229.64394,784439  0% 0% 0% 100%
Ruby JRuby179.39179.62879,376439  1% 0% 0% 100%
 k-nucleotide 
Ruby 2.0774.29774.63158,084420  0% 0% 0% 100%
Ruby JRuby505.94506.351,274,752637  0% 0% 0% 100%
 spectral-norm 
Ruby 2.0717.21718.2125,120828  0% 0% 0% 100%
Ruby JRuby323.75324.30595,740326  0% 0% 0% 100%
 n-body 
Ruby 2.01,608.631,609.194,8841137  0% 0% 0% 100%
Ruby JRuby563.29564.04585,4281137  0% 0% 0% 100%
 fannkuch-redux 
Ruby 2.04,014.404,015.444,864384  0% 0% 0% 100%
Ruby JRuby947.43947.73583,116384  0% 0% 0% 100%
 mandelbrot 
Ruby 2.04,810.034,811.354,864307  0% 0% 0% 100%
Ruby JRuby989.19990.69584,584307  0% 0% 1% 100%
 fasta-redux
   No programs

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

Remember - those are just the fastest Ruby 2.0 and Ruby JRuby programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ruby 2.0.

Maybe one of those other Ruby 2.0 programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

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

online book Programming Ruby: The Pragmatic Programmers Guide

ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]

Home Page: Ruby is…

Download: Ruby 2.0.0-p0 is released

Revised BSD license

  Home   Conclusions   License   Play