÷

 Step 1 : Are the Ruby MRI programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby MRI program used compared to the fastest Java 6 -Xint program.


 Step 2 : Are the Ruby MRI programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Ruby MRI program used compared to the fastest Java 6 -Xint program.

 Ruby MRI used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/171/21/2
 k-nucleotide±±1/3
 reverse-complement±1/2
 pidigits±±±
 partial-sums1/41/2
 fannkuch1/21/2
 binary-trees±
 n-body12×1/6±
 nsieve14×±
 recursive14×1/2±
 spectral-norm15×1/41/2
 mandelbrot16×1/61/2
 fasta29×33×1/2
 nsieve-bits30×1/4±

± 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 ~ speed and size.

For each named benchmark, measurements of the fastest Ruby MRI program are shown for comparison against measurements of the fastest Java 6 -Xint program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Ruby MRI7.6242,824396  
Java 6 -Xint130.2666,972921  
 k-nucleotide 
Ruby MRI160.0984,616420  
Java 6 -Xint174.5968,3121052  
 reverse-complement 
Ruby MRI8.0886,340266  
Java 6 -Xint8.6357,188592  
 pidigits 
Ruby MRI0.306,032653  
Java 6 -Xint0.217,716938  
 partial-sums 
Ruby MRI59.611,640362  
Java 6 -Xint13.197,120711  
 fannkuch 
Ruby MRI12.422,864326  
Java 6 -Xint1.687,092555  
 binary-trees 
Ruby MRI172.3148,756409  
Java 6 -Xint21.4624,364603  
 n-body 
Ruby MRI4,847.571,7121137  
Java 6 -Xint400.619,5561424  
 nsieve 
Ruby MRI41.5130,408270  
Java 6 -Xint2.9919,388296  
 recursive 
Ruby MRI45.764,492301  
Java 6 -Xint3.189,752427  
 spectral-norm 
Ruby MRI9,862.172,732292  
Java 6 -Xint660.7310,584514  
 mandelbrot 
Ruby MRI59.321,652349  
Java 6 -Xint3.689,388665  
 fasta 
Ruby MRI4,202.98238,156744  
Java 6 -Xint146.297,1521240  
 nsieve-bits 
Ruby MRI139.662,740346  
Java 6 -Xint4.6310,000423  
 chameneos-redux 
No program
Java 6 -Xint0.7310,3321429  

 Step 4 : Are there other Ruby MRI programs for these benchmarks?

Remember - those are just the fastest Ruby MRI and Java 6 -Xint programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ruby MRI.

Maybe one of those other Ruby MRI programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Ruby MRI and Java 6 -Xint programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Ruby MRI : programmer fun - everything is an object scripting 

online book "Programming Ruby: The Pragmatic Programmer's Guide

ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

Home Page: Ruby is

Download: Download Ruby

Revised BSD license

  Home   Flawed   Fastest   License   Help