/mobile Handheld Friendly website

÷

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


Look at speed another way - look at a box plot of Time-used data.

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

 Ruby 1.9 used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna±1/21/3
 pidigits±1/41/8
 reverse-complement1/41/3
 binary-trees13×±±
 k-nucleotide17×1/31/6
 fasta26×11×1/2
 spectral-norm40×1/31/2
 fannkuch-redux54×1/41/3
 n-body72×1/4±
 mandelbrot172×1/151/3
 Ruby 1.9 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±22×54×128×172×

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

For each named benchmark, measurements of the fastest Ruby 1.9 program are shown for comparison against measurements of the fastest Java 7 -server program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Ruby 1.931.1231.16285,828501  0% 0% 0% 100%
Java 7 -server22.9523.00561,4361284  0% 0% 0% 100%
 pidigits 
Ruby 1.98.978.9912,520242  0% 0% 0% 100%
Java 7 -server6.006.0153,7681826  1% 0% 0% 100%
 reverse-complement 
Ruby 1.97.437.44127,164255  0% 0% 0% 100%
Java 7 -server1.791.83514,512745  2% 1% 2% 100%
 binary-trees 
Ruby 1.9217.58217.75442,092413  0% 0% 0% 100%
Java 7 -server16.4416.48499,416603  0% 0% 0% 100%
 k-nucleotide 
Ruby 1.9495.34495.60166,852420  0% 0% 0% 100%
Java 7 -server29.0229.10521,8202431  0% 0% 0% 100%
 fasta 
Ruby 1.9131.35135.71205,908762  0% 1% 0% 100%
Java 7 -server5.185.1918,0441507  1% 0% 1% 100%
 spectral-norm 
Ruby 1.9680.23680.646,332292  0% 0% 0% 100%
Java 7 -server16.9917.0018,244514  0% 0% 0% 100%
 fannkuch-redux 
Ruby 1.93,754.583,755.614,744422  0% 0% 0% 100%
Java 7 -server69.9669.9917,0201282  0% 0% 0% 100%
 n-body 
Ruby 1.91,630.731,631.334,7361137  0% 0% 0% 100%
Java 7 -server22.5122.5116,9401424  0% 0% 0% 100%
 mandelbrot 
Ruby 1.94,089.694,091.394,740307  0% 0% 0% 100%
Java 7 -server23.7423.7569,696796  0% 0% 0% 100%
 fasta-redux 
No program
Java 7 -server0.120.12?1443  0% 8% 0% 100%

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

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

Maybe one of those other Ruby 1.9 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 1.9 and Java 7 -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 1.9 : the new Ruby 

online book Programming Ruby: The Pragmatic Programmers Guide

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

Home Page: Ruby is…

Download: Ruby 1.9.3-p194 is released

Revised BSD license

  Home   Conclusions   License   Help