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%
k-nucleotide
source secs KB gz cpu cpu load
Ruby JRuby 181.44 968,128 637 559.76 84% 83% 76% 67%
Ruby 131.92 134,100 637 438.35 87% 78% 92% 78%
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%
binary-trees
source secs KB gz cpu cpu load
Ruby JRuby 149.36 1,444,868 439 204.64 19% 25% 68% 26%
Ruby 57.98 243,912 1123 168.33 96% 65% 68% 64%
reverse-complement
source secs KB gz cpu cpu load
Ruby JRuby 8.72 2,361,496 509 23.96 84% 64% 63% 65%
Ruby 3.33 572,420 509 6.50 28% 89% 63% 18%
pidigits
source secs KB gz cpu cpu load
Ruby JRuby 20.41 681,636 518 27.32 69% 32% 23% 11%
Ruby 3.15 482,924 478 3.14 1% 1% 2% 100%
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]