Compare the performance of Ruby MRI programs against some other language implementation.

For more information about the Ruby implementation we measured see ↓ about Ruby MRI.

Compare to:

 Ruby MRI comparison summary


1/2 1/3 1/4 … Ruby MRI is better
Programs Time Memory Use Source Size Reduced N
chameneos-redux  No Perl
reverse-complement1/41/2±
binary-trees±±±
regex-dna±1/2±
fannkuch2±±
spectral-norm2±±
fasta2116±
n-body2±±
k-nucleotide31/5±
pidigits74±
mandelbrot81/1911/2

± look at the measurements

 Ruby MRI comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 reverse-complement 
Ruby MRI #210.09197,34825510.09  0% 98% 0% 0%
Perl #238.22422,91229838.22  0% 99% 0% 0%
 binary-trees 
Ruby MRI1,070.44457,7884121,070.38  1% 100% 1% 1%
Perl #21,343.31643,5045411,343.26  100% 0% 0% 0%
 regex-dna 
Ruby MRI58.39254,33632358.39  0% 0% 0% 100%
Perl #446.45562,05644046.45  0% 100% 0% 0%
 fannkuch 
Ruby MRI #36,779.961,8883406,779.55  0% 100% 0% 0%
Perl4,358.001,6683484,357.75  0% 0% 100% 0%
 spectral-norm 
Ruby MRI2,251.472,6762922,251.33  0% 0% 0% 100%
Perl1,446.022,7963551,445.94  87% 0% 13% 0%
 fasta 
Ruby MRI #2630.13245,868732630.12  0% 41% 1% 58%
Perl #4347.132,128934347.13  0% 100% 0% 0%
 n-body 
Ruby MRI #23,982.801,65211373,982.55  0% 100% 0% 0%
Perl1,930.062,14011401,929.94  0% 100% 0% 0%
 k-nucleotide 
Ruby MRI #2843.59147,980420843.54  0% 0% 0% 100%
Perl #2246.72709,252359249.79  1% 1% 98% 0%
 pidigits 
Ruby MRI53.8113,92451853.81  0% 0% 0% 100%
Perl #28.083,3043858.08  100% 0% 0% 0%
 mandelbrot 
Ruby MRI11,695.701,56831311,694.96  0% 100% 0% 0%
Perl5,489.72300,1605501,432.43  96% 95% 96% 95%

 about Ruby MRI

online book "Programming Ruby: The Pragmatic Programmer's Guide

ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]

Home Page: Ruby is

Download: Download Ruby

Revised BSD license