÷

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


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

 Ruby JRuby used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits±±1/2
 regex-dna±1/2
 reverse-complement1/2
 binary-trees22×±
 chameneos-redux25×±
 k-nucleotide37×±1/4
 n-body66×17×±
 fasta66×21×1/2
 fannkuch118×12×1/3
 spectral-norm242×18×1/3
 mandelbrot365×1/3

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

 Step 3 : Are the Ruby JRuby 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 JRuby 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
 pidigits 
Ruby JRuby66.0163.32211,624518  10% 18% 47% 28%
Java 6 -server59.1858.03240,912800  34% 23% 31% 14%
 regex-dna 
Ruby JRuby65.4463.18542,888409  94% 3% 5% 3%
Java 6 -server29.5011.81694,708929  87% 54% 54% 55%
 reverse-complement 
Ruby JRuby21.2318.61744,616255  7% 7% 92% 9%
Java 6 -server3.383.32473,716592  0% 2% 1% 98%
 binary-trees 
Ruby JRuby315.36251.911,629,936412  31% 29% 47% 18%
Java 6 -server14.1311.68460,636603  28% 24% 55% 14%
 chameneos-redux 
Ruby JRuby306.86143.9852,116928  39% 57% 64% 51%
Java 6 -server13.675.8212,9521377  59% 50% 54% 60%
 k-nucleotide 
Ruby JRuby509.43501.95491,908420  48% 10% 19% 24%
Java 6 -server46.2813.60476,3161602  86% 92% 81% 81%
 n-body 
Ruby JRuby1,571.281,561.80208,4561137  22% 26% 12% 40%
Java 6 -server23.7023.7412,6081424  0% 100% 0% 0%
 fasta 
Ruby JRuby514.44511.14266,924760  17% 31% 24% 28%
Java 6 -server7.757.7212,8081240  1% 100% 0% 1%
 fannkuch 
Ruby JRuby2,134.802,125.15160,652340  19% 34% 17% 31%
Java 6 -server65.4317.9413,9401150  99% 99% 99% 68%
 spectral-norm 
Ruby JRuby990.49983.49231,508292  23% 31% 16% 31%
Java 6 -server15.934.0712,736950  97% 100% 98% 97%
 mandelbrot 
Ruby JRuby4,237.204,213.82226,932313  21% 25% 16% 39%
Java 6 -server45.2111.5444,768903  98% 98% 98% 99%

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

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

Maybe one of those other Ruby JRuby 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 JRuby 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 JRuby : everything is an object scripting for jvm 

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Server VM 1.6.0_18) [i386-java]

Home Page: 100% Pure-Java Implementation of the Ruby Programming Language

Download: http://jruby.org/download

Revised BSD license

  Home   Flawed   Fastest   License   Help