The Computer Language
Benchmarks Game

Ruby JRuby programs versus Ruby

by benchmark task performance

n-body
source secs KB gz cpu cpu load
Ruby JRuby 292.96 706,256 1137 300.18 26% 29% 25% 24%
Ruby 694.21 9,144 1137 694.04 0% 1% 100% 0%
fannkuch-redux
source secs KB gz cpu cpu load
Ruby JRuby 360.80 705,472 1426 1,322.39 86% 99% 90% 92%
Ruby 788.85 37,668 1426 3,065.01 100% 99% 99% 91%
fasta
source secs KB gz cpu cpu load
Ruby JRuby 81.66 818,584 973 88.98 81% 9% 16% 6%
Ruby 113.64 59,200 973 113.60 1% 100% 0% 1%
pidigits
source secs KB gz cpu cpu load
Ruby JRuby 12.64 681,276 240 18.39 20% 75% 12% 42%
Ruby 11.18 163,168 242 11.16 96% 0% 1% 6%
k-nucleotide
source secs KB gz cpu cpu load
Ruby JRuby 92.67 1,537,900 449 101.75 46% 9% 41% 15%
Ruby 80.44 381,616 589 80.37 38% 15% 15% 36%
spectral-norm
source secs KB gz cpu cpu load
Ruby JRuby 249.84 687,468 326 257.70 35% 32% 16% 23%
Ruby 134.21 54,680 835 516.92 97% 97% 96% 96%
regex-dna
source secs KB gz cpu cpu load
Ruby JRuby 18.09 990,328 507 54.62 76% 82% 68% 77%
Ruby 9.35 108,284 529 27.11 71% 63% 91% 67%
mandelbrot
source secs KB gz cpu cpu load
Ruby JRuby 864.77 2,288,400 849 3,369.90 98% 98% 98% 98%
Ruby 438.01 72,684 1019 1,748.64 100% 100% 100% 100%
reverse-complement
source secs KB gz cpu cpu load
Ruby JRuby 11.50 2,310,096 536 32.88 78% 73% 70% 68%
Ruby 5.24 686,764 536 9.66 77% 30% 28% 52%
binary-trees
source secs KB gz cpu cpu load
Ruby JRuby 146.20 2,288,800 1123 554.14 96% 97% 96% 95%
Ruby 57.98 243,912 1123 168.33 96% 65% 68% 64%
fasta-redux
source secs KB gz cpu cpu load
  No program contribute your program
Ruby 1.24 10,040 750 1.24 1% 100% 3% 2%
Ruby JRuby

jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [linux-x86_64]

Ruby

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]