÷

 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 -server 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 -server program.

 Ruby MRI used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna±1/2
 reverse-complement1/2
 k-nucleotide1/21/3
 partial-sums1/6±
 pidigits12×±1/2
 binary-trees21×±
 nsieve23×11×±
 fannkuch26×1/61/2
 recursive56×1/2±
 mandelbrot122×1/31/2
 spectral-norm125×±1/2
 nsieve-bits126×1/3±
 fasta165×24×1/2
 n-body181×1/6±

± 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 -server program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Ruby MRI8.7941,496396  
Java 6 -server4.0652,248711  
 reverse-complement 
Ruby MRI8.3558,348266  
Java 6 -server1.3935,360588  
 k-nucleotide 
Ruby MRI145.7830,932420  
Java 6 -server15.7566,5401052  
 partial-sums 
Ruby MRI63.511,604362  
Java 6 -server6.859,460470  
 pidigits 
Ruby MRI38.7915,096518  
Java 6 -server3.3111,728938  
 binary-trees 
Ruby MRI157.3948,752409  
Java 6 -server7.5624,012603  
 nsieve 
Ruby MRI45.42210,192353  
Java 6 -server1.9818,708293  
 fannkuch 
Ruby MRI12.551,812326  
Java 6 -server0.489,976761  
 recursive 
Ruby MRI38.054,500301  
Java 6 -server0.689,652427  
 mandelbrot 
Ruby MRI58.603,332349  
Java 6 -server0.489,948623  
 spectral-norm 
Ruby MRI66.2618,532292  
Java 6 -server0.5325,924514  
 nsieve-bits 
Ruby MRI118.133,152346  
Java 6 -server0.9410,324517  
 fasta 
Ruby MRI3,297.26238,200744  
Java 6 -server19.9610,0961240  
 n-body 
Ruby MRI4,979.781,7121137  
Java 6 -server27.5410,8881430  
 chameneos-redux
   No programs

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

Remember - those are just the fastest Ruby MRI and Java 6 -server 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 -server 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-09-24 patchlevel 111) [i486-linux]

Home Page: Ruby is

Download: Download Ruby

Revised BSD license

  Home   Flawed   Fastest   License   Help