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-reduxNo program
binary-trees±±±
regex-dna±±±
recursive±4±
nsieve2±±
spectral-norm2±± 500
fannkuch21/2±
n-body3±±
mandelbrot4±±
fasta475±
reverse-complement42±
partial-sums41/2±
sum-file5±±
nsieve-bits52±
k-nucleotide5±±
pidigits65±

± look at the measurements

 Ruby MRI comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 binary-trees 
Ruby MRI #2157.3948,752409  
Perl224.0637,588481  
 regex-dna 
Ruby MRI10.7931,756323  
Perl #213.6625,048449  
 recursive 
Ruby MRI #21,413.5147,608301  
Perl #2956.3110,812380  
 nsieve 
Ruby MRI92.69228,964353  
Perl #260.70242,316290  
 spectral-norm N = 500 reduced workload 
Ruby MRI66.2618,532292  
Perl #232.8516,956334  
 fannkuch 
Ruby MRI1,816.411,864326  
Perl728.503,144348  
 n-body 
Ruby MRI #24,979.781,7121137  
Perl1,567.731,9041140  
 mandelbrot 
Ruby MRI #31,456.463,332349  
Perl #2382.653,388311  
 fasta 
Ruby MRI3,297.26238,200744  
Perl #4850.673,156934  
 reverse-complement 
Ruby MRI8.3558,348266  
Perl #21.9938,356298  
 partial-sums 
Ruby MRI63.511,604362  
Perl #314.233,156389  
 sum-file 
Ruby MRI71.6414,92875  
Perl15.5514,91684  
 nsieve-bits 
Ruby MRI #2489.626,068346  
Perl93.554,024253  
 k-nucleotide 
Ruby MRI #2145.7830,932420  
Perl #227.5442,836359  
 pidigits 
Ruby MRI38.7915,096518  
Perl #26.213,144385  

 about Ruby MRI

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