÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby MRI program used compared to the fastest Perl program.


 Step 2 : Are the Ruby MRI programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

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

 Ruby MRI used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 binary-trees±±±
 reverse-complement±
 fasta116×±
 n-body±±
 regex-dna1/2
 fannkuch1/3±
 spectral-norm1/31/3
 pidigits±
 mandelbrot1/1861/2
 k-nucleotide10×1/191/2

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

 Step 3 : Are the Ruby MRI programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest Ruby MRI program are shown for comparison against measurements of the fastest Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 binary-trees 
Ruby MRI1,070.441,070.38457,788412  1% 100% 1% 1%
Perl1,292.441,292.38643,488541  0% 0% 100% 0%
 reverse-complement 
Ruby MRI10.0910.09197,348255  0% 98% 0% 0%
Perl5.785.79124,036237  0% 0% 0% 100%
 fasta 
Ruby MRI630.13630.12245,868732  0% 41% 1% 58%
Perl339.78339.762,112934  100% 0% 0% 0%
 n-body 
Ruby MRI3,982.803,982.551,6521137  0% 100% 0% 0%
Perl1,914.131,914.022,1281140  0% 0% 0% 100%
 regex-dna 
Ruby MRI58.3958.39254,336323  0% 0% 0% 100%
Perl39.0714.23153,584527  55% 66% 58% 96%
 fannkuch 
Ruby MRI6,779.966,779.551,888340  0% 100% 0% 0%
Perl4,206.051,062.526,020471  99% 99% 99% 100%
 spectral-norm 
Ruby MRI2,251.472,251.332,676292  0% 0% 0% 100%
Perl1,212.30304.617,792846  100% 100% 99% 100%
 pidigits 
Ruby MRI53.8153.8113,924518  0% 0% 0% 100%
Perl7.037.033,284385  0% 0% 0% 100%
 mandelbrot 
Ruby MRI11,695.7011,694.961,568313  0% 100% 0% 0%
Perl5,578.831,436.69291,628550  97% 97% 97% 97%
 k-nucleotide 
Ruby MRI843.59843.54147,980420  0% 0% 0% 100%
Perl281.5788.722,774,904648  78% 73% 88% 83%
 chameneos-redux 
Ruby MRI131.29131.281,956928  100% 0% 0% 0%
No Perl

 Measurements for all the accepted programs

 Ruby MRI : programmer fun - everything is an object scripting 

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