÷

 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.


 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/3±±
 n-body1/2±
 mandelbrot1/2±
 fasta1/2±±
 fannkuch1/2±
 k-nucleotide±±±
 regex-dna±±±
 reverse-complement±±±
 chameneos-redux±±
 pidigits±±±

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

 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.9245.46245.39196,796412  0% 100% 0% 57%
Ruby MRI1,070.441,070.38457,788412  1% 100% 1% 1%
 spectral-norm 
Ruby 1.9671.09670.903,560292  0% 100% 0% 0%
Ruby MRI2,251.472,251.332,676292  0% 0% 0% 100%
 n-body 
Ruby 1.92,072.122,071.492,8321137  0% 100% 0% 0%
Ruby MRI3,982.803,982.551,6521137  0% 100% 0% 0%
 mandelbrot 
Ruby 1.96,399.396,397.572,772313  0% 0% 0% 100%
Ruby MRI11,695.7011,694.961,568313  0% 100% 0% 0%
 fasta 
Ruby 1.9357.62357.52198,596732  1% 1% 0% 100%
Ruby MRI630.13630.12245,868732  0% 41% 1% 58%
 fannkuch 
Ruby 1.93,886.223,885.172,956344  0% 0% 100% 0%
Ruby MRI6,779.966,779.551,888340  0% 100% 0% 0%
 k-nucleotide 
Ruby 1.9725.39725.14157,320420  0% 0% 0% 100%
Ruby MRI843.59843.54147,980420  0% 0% 0% 100%
 regex-dna 
Ruby 1.956.6856.67321,412323  0% 1% 100% 0%
Ruby MRI58.3958.39254,336323  0% 0% 0% 100%
 reverse-complement 
Ruby 1.99.839.83247,288255  0% 0% 0% 100%
Ruby MRI10.0910.09197,348255  0% 98% 0% 0%
 chameneos-redux 
Ruby 1.9210.68156.492,980928  22% 35% 33% 42%
Ruby MRI131.29131.281,956928  100% 0% 0% 0%
 pidigits 
Ruby 1.968.1768.1413,416518  0% 0% 0% 100%
Ruby MRI53.8153.8113,924518  0% 0% 0% 100%

 Ruby 1.9 : the new Ruby 

online book Programming Ruby: The Pragmatic Programmers Guide

ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]

Home Page: Ruby Core

Download: Ruby 1.9.1 released

Revised BSD license