/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-dna1/21/2
 pidigits1/41/8
 reverse-complement1/21/7
 k-nucleotide18×1/31/4
 binary-trees23×1/31/2
 fasta28×12×1/2
 spectral-norm42×±±
 n-body58×1/4±
 mandelbrot193×±±
 fannkuch-redux255×1/41/3
 Ruby 1.9 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)26×58×136×255×

± 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.938.1417.99294,228501  91% 36% 40% 46%
Java 7 -server28.9210.07708,180929  65% 64% 83% 76%
 pidigits 
Ruby 1.916.9316.9511,420242  0% 0% 0% 100%
Java 7 -server12.365.1647,3481826  60% 61% 61% 54%
 reverse-complement 
Ruby 1.98.678.68174,744255  0% 0% 100% 0%
Java 7 -server2.881.52294,6561661  56% 74% 46% 16%
 k-nucleotide 
Ruby 1.9586.70172.64126,136637  95% 96% 75% 76%
Java 7 -server34.659.39381,1762431  92% 89% 97% 92%
 binary-trees 
Ruby 1.9226.77226.88210,372413  0% 0% 0% 100%
Java 7 -server23.899.78532,9321007  61% 77% 45% 63%
 fasta 
Ruby 1.9136.61137.45182,728762  58% 1% 5% 37%
Java 7 -server4.954.8614,9761507  1% 0% 100% 1%
 spectral-norm 
Ruby 1.9660.30176.8218,820828  94% 95% 93% 92%
Java 7 -server16.384.2114,556950  97% 97% 99% 98%
 n-body 
Ruby 1.91,408.801,409.183,6681137  88% 0% 0% 12%
Java 7 -server24.3724.3413,9321424  0% 0% 0% 100%
 mandelbrot 
Ruby 1.95,296.441,330.6457,684925  100% 100% 100% 100%
Java 7 -server27.156.8967,832796  98% 99% 99% 99%
 fannkuch-redux 
Ruby 1.94,368.024,369.203,400422  0% 0% 100% 0%
Java 7 -server67.7317.1314,2081282  98% 99% 99% 100%
 fasta-redux 
No program
Java 7 -server0.130.11?1443  9% 18% 10% 90%

 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) [i686-linux]

Home Page: Ruby is…

Download: Ruby 1.9.3-p194 is released

Revised BSD license

  Home   Conclusions   License   Help