÷

 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.


 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-complement1/2±
 fasta78×±
 n-body±±
 mandelbrot1/2±
 pidigits±
 regex-dna1/2
 fannkuch1/3±
 spectral-norm1/31/3
 k-nucleotide11×1/171/2

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

 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,253.731,253.65781,228412  0% 0% 100% 0%
Perl1,276.891,276.851,091,276541  0% 0% 100% 0%
 reverse-complement 
Ruby MRI8.508.50246,712255  0% 0% 100% 0%
Perl5.255.25431,496298  100% 0% 0% 0%
 fasta 
Ruby MRI654.81654.84197,644732  0% 1% 0% 100%
Perl314.46314.462,548934  100% 0% 0% 0%
 n-body 
Ruby MRI4,058.304,058.052,1681137  0% 0% 100% 0%
Perl1,665.131,665.142,5681140  0% 0% 100% 0%
 mandelbrot 
Ruby MRI12,196.2812,195.562,064313  26% 0% 39% 34%
Perl4,226.424,226.214,136311  0% 0% 100% 0%
 pidigits 
Ruby MRI27.6027.6014,324518  0% 0% 100% 0%
Perl7.467.463,868385  100% 0% 0% 0%
 regex-dna 
Ruby MRI50.2150.21350,236323  0% 100% 0% 0%
Perl38.6112.84167,208527  78% 66% 76% 81%
 fannkuch 
Ruby MRI6,738.696,738.272,584340  0% 0% 0% 100%
Perl3,749.89942.908,808471  99% 100% 100% 100%
 spectral-norm 
Ruby MRI2,247.442,247.314,288292  0% 1% 0% 100%
Perl1,137.10285.5510,976846  100% 100% 100% 100%
 k-nucleotide 
Ruby MRI853.73853.68166,340420  0% 0% 100% 0%
Perl256.1578.582,883,780648  81% 71% 88% 84%
 chameneos-redux 
Ruby MRI158.27158.262,656928  0% 0% 100% 0%
No Perl

 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) [x86_64-linux]

Home Page: Ruby is

Download: Download Ruby

Revised BSD license