÷

 Step 1 : Are the Ruby 1.9 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 1.9 program used compared to the fastest Ruby MRI program.


 Step 2 : Are the Ruby 1.9 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 1.9 program used compared to the fastest Ruby MRI program.

 Ruby 1.9 used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 binary-trees1/41/2±
 spectral-norm1/2±±
 fasta±±±
 fannkuch±±
 mandelbrot±±
 regex-dna±±±
 n-body±±
 k-nucleotide±±±
 reverse-complement±±±
 pidigits±±±

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

 Step 3 : Are the Ruby 1.9 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 1.9 program are shown for comparison against measurements of the fastest Ruby MRI program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 binary-trees 
Ruby 1.9265.07265.06299,960412  0% 0% 0% 100%
Ruby MRI1,069.741,069.68457,796412  0% 0% 0% 100%
 spectral-norm 
Ruby 1.9920.32920.263,940292  0% 0% 0% 100%
Ruby MRI2,222.022,221.892,676292  0% 0% 0% 100%
 fasta 
Ruby 1.9443.14443.20174,280732  0% 0% 0% 100%
Ruby MRI623.67623.67245,848732  0% 0% 0% 100%
 fannkuch 
Ruby 1.94,972.164,971.873,020344  0% 7% 0% 100%
Ruby MRI6,749.926,749.501,884340  0% 0% 0% 100%
 mandelbrot 
Ruby 1.98,662.938,662.612,768313  0% 0% 0% 100%
Ruby MRI11,516.8911,516.181,564313  0% 0% 0% 100%
 regex-dna 
Ruby 1.950.7750.77322,520323  0% 0% 0% 100%
Ruby MRI58.6458.64254,336323  2% 3% 0% 100%
 n-body 
Ruby 1.93,482.503,482.282,8721137  0% 0% 0% 100%
Ruby MRI3,997.423,997.171,6481137  0% 0% 0% 100%
 k-nucleotide 
Ruby 1.9797.00797.23163,236420  0% 0% 0% 100%
Ruby MRI850.30850.25147,984420  0% 0% 0% 100%
 reverse-complement 
Ruby 1.910.3610.36174,076255  0% 0% 0% 100%
Ruby MRI9.959.96197,352255  0% 0% 0% 100%
 pidigits 
Ruby 1.973.2573.2513,156518  0% 0% 0% 100%
Ruby MRI53.8453.8413,924518  0% 0% 0% 100%
 chameneos-redux
Ruby 1.9Failed

 Measurements for all the accepted programs

 Ruby 1.9 : the new Ruby 

online book Programming Ruby: The Pragmatic Programmers Guide

ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]

Home Page: Ruby Core

Download: Ruby 1.9.1 released

Revised BSD license