÷

 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±±±
 recursive±±
 nsieve±±
 spectral-norm±± 500
 fannkuch1/2±
 n-body±±
 mandelbrot±±
 fasta75×±
 reverse-complement±
 partial-sums1/2±
 sum-file±±
 nsieve-bits±
 k-nucleotide±±
 pidigits±

± 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 MRI157.3948,752409  
Perl224.0637,588481  
 regex-dna 
Ruby MRI10.7931,756323  
Perl13.6625,048449  
 recursive 
Ruby MRI1,413.5147,608301  
Perl956.3110,812380  
 nsieve 
Ruby MRI92.69228,964353  
Perl60.70242,316290  
 spectral-norm N = 500 reduced workload 
Ruby MRI66.2618,532292  
Perl32.8516,956334  
 fannkuch 
Ruby MRI1,816.411,864326  
Perl728.503,144348  
 n-body 
Ruby MRI4,979.781,7121137  
Perl1,567.731,9041140  
 mandelbrot 
Ruby MRI1,456.463,332349  
Perl382.653,388311  
 fasta 
Ruby MRI3,297.26238,200744  
Perl850.673,156934  
 reverse-complement 
Ruby MRI8.3558,348266  
Perl1.9938,356298  
 partial-sums 
Ruby MRI63.511,604362  
Perl14.233,156389  
 sum-file 
Ruby MRI71.6414,92875  
Perl15.5514,91684  
 nsieve-bits 
Ruby MRI489.626,068346  
Perl93.554,024253  
 k-nucleotide 
Ruby MRI145.7830,932420  
Perl27.5442,836359  
 pidigits 
Ruby MRI38.7915,096518  
Perl6.213,144385  
 chameneos-redux
   No program

 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.6 (2007-09-24 patchlevel 111) [i486-linux]

Home Page: Ruby is

Download: Download Ruby

Revised BSD license