The Computer Language
Benchmarks Game

Ruby programs versus Ruby JRuby

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Ruby 3.14 477,092 478 3.12 0% 100% 2% 1%
Ruby JRuby 20.84 776,548 518 34.12 28% 91% 17% 30%
reverse-complement
source secs mem gz cpu cpu load
Ruby 4.03 505,656 509 7.14 51% 83% 37% 9%
Ruby JRuby 9.09 2,283,300 536 25.64 80% 62% 71% 72%
mandelbrot
source secs mem gz cpu cpu load
Ruby 463.95 69,656 1019 1,852.06 100% 100% 100% 100%
Ruby JRuby 859.39 2,290,948 849 3,351.00 98% 98% 98% 98%
k-nucleotide
source secs mem gz cpu cpu load
Ruby 101.95 381,312 852 367.82 84% 98% 85% 95%
Ruby JRuby 181.25 1,592,680 540 581.16 77% 88% 74% 84%
spectral-norm
source secs mem gz cpu cpu load
Ruby 141.49 50,156 835 544.76 96% 97% 96% 97%
Ruby JRuby 251.17 685,284 326 258.56 20% 29% 33% 23%
binary-trees
source secs mem gz cpu cpu load
Ruby 54.24 510,868 1078 153.99 73% 98% 67% 72%
Ruby JRuby 62.06 1,693,060 1078 230.50 92% 93% 95% 94%
regex-redux
source secs mem gz cpu cpu load
Ruby 28.80 309,760 424 28.77 15% 48% 20% 19%
Ruby JRuby 29.48 1,554,812 424 66.90 59% 68% 50% 52%
fasta
source secs mem gz cpu cpu load
Ruby 108.36 107,984 973 108.32 7% 10% 75% 10%
Ruby JRuby 77.16 733,140 973 84.79 43% 20% 11% 38%
fannkuch-redux
source secs mem gz cpu cpu load
Ruby 710.58 33,348 1426 2,761.73 99% 99% 95% 97%
Ruby JRuby 465.29 690,372 1426 1,666.83 99% 91% 81% 88%
n-body
source secs mem gz cpu cpu load
Ruby 723.69 8,916 1137 723.48 25% 86% 1% 9%
Ruby JRuby 290.75 708,196 1137 298.28 36% 30% 22% 18%
Ruby

ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]

Ruby JRuby

jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [linux-x86_64]