÷

 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±±±
 regex-dna±1/2
 reverse-complement1/2±
 spectral-norm1/31/3
 fasta78×±
 n-body±±
 fannkuch±±
 mandelbrot1/2±
 pidigits±
 k-nucleotide1/5±

± 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,259.731,259.66781,212412  0% 0% 0% 100%
Perl1,490.641,490.581,091,276541  0% 0% 0% 100%
 regex-dna 
Ruby MRI52.9752.97350,232323  0% 0% 0% 100%
Perl38.7838.78165,064527  0% 0% 0% 100%
 reverse-complement 
Ruby MRI8.518.50246,708255  0% 0% 0% 100%
Perl5.305.30433,056298  0% 0% 0% 100%
 spectral-norm 
Ruby MRI2,286.912,286.774,296292  0% 0% 0% 100%
Perl1,094.721,094.6511,060846  0% 0% 0% 100%
 fasta 
Ruby MRI658.83658.82197,640732  0% 0% 1% 100%
Perl311.00310.982,548934  1% 1% 1% 100%
 n-body 
Ruby MRI4,063.794,063.542,1681137  0% 0% 0% 100%
Perl1,639.611,639.532,5721140  0% 0% 0% 100%
 fannkuch 
Ruby MRI6,768.906,768.522,588340  0% 0% 0% 100%
Perl2,660.572,660.432,060391  0% 0% 0% 100%
 mandelbrot 
Ruby MRI12,230.6012,229.872,056313  0% 0% 0% 100%
Perl4,387.614,387.504,132311  0% 0% 0% 100%
 pidigits 
Ruby MRI27.6127.6114,216518  0% 0% 0% 100%
Perl7.477.483,884385  0% 0% 0% 100%
 k-nucleotide 
Ruby MRI857.89857.84166,344420  0% 0% 0% 100%
Perl225.09228.97780,228359  0% 0% 0% 100%
 chameneos-redux 
Ruby MRI159.12159.122,656928  1% 0% 0% 100%
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) [x86_64-linux]

Home Page: Ruby is

Download: Download Ruby

Revised BSD license