/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 Python 3 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 Python 3 program.

 Ruby 2.0 used what fraction? used how many times more? 
Benchmark Time Memory Code
 binary-trees1/21/2±
 fasta±40×±
 spectral-norm±
 fannkuch-redux±±±
 n-body±±±
 reverse-complement1/5±
 k-nucleotide1/31/2
 regex-dna±
 mandelbrot±1/3
 pidigits±
 Ruby 2.0 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2±

± 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 Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 binary-trees 
Ruby 2.0229.52229.64394,784439  0% 0% 0% 100%
Python 3504.56504.93685,724626  0% 0% 0% 100%
 fasta 
Ruby 2.0179.05181.61188,088772  0% 0% 0% 100%
Python 3259.48262.344,672788  0% 1% 1% 100%
 spectral-norm 
Ruby 2.0717.21718.2125,120828  0% 0% 0% 100%
Python 31,018.201,018.445,208328  0% 0% 0% 100%
 fannkuch-redux 
Ruby 2.04,014.404,015.444,864384  0% 0% 0% 100%
Python 32,903.203,204.314,564385  0% 0% 0% 100%
 n-body 
Ruby 2.01,608.631,609.194,8841137  0% 0% 0% 100%
Python 31,098.651,098.894,7001181  0% 0% 0% 100%
 reverse-complement 
Ruby 2.010.1710.18127,452255  0% 0% 0% 100%
Python 36.506.51616,588325  0% 0% 0% 100%
 k-nucleotide 
Ruby 2.0774.29774.63158,084420  0% 0% 0% 100%
Python 3474.71474.95426,212647  1% 0% 0% 100%
 regex-dna 
Ruby 2.041.4641.48312,596417  0% 0% 0% 100%
Python 321.1321.14194,612424  0% 0% 0% 100%
 mandelbrot 
Ruby 2.04,810.034,811.354,864307  0% 0% 0% 100%
Python 31,845.311,968.406,748777  1% 0% 0% 100%
 pidigits 
Ruby 2.019.3219.3513,196242  1% 0% 0% 100%
Python 33.063.065,408255  1% 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 Python 3 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 Python 3 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