The Computer Language
Benchmarks Game

Ruby JRuby programs versus Ruby

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Ruby JRuby 405.01 775,148 1137 418.00 21% 20% 29% 36%
Ruby 723.69 8,916 1137 723.48 25% 86% 1% 9%
fasta
source secs mem gz cpu cpu load
Ruby JRuby 79.62 799,424 973 88.94 45% 27% 37% 13%
Ruby 108.36 107,984 973 108.32 7% 10% 75% 10%
fannkuch-redux
source secs mem gz cpu cpu load
Ruby JRuby 529.79 786,812 1426 2,011.99 96% 91% 94% 100%
Ruby 710.58 33,348 1426 2,761.73 99% 99% 95% 97%
regex-redux
source secs mem gz cpu cpu load
Ruby JRuby 34.34 1,275,904 424 82.77 51% 48% 69% 75%
Ruby 28.80 309,760 424 28.77 15% 48% 20% 19%
binary-trees
source secs mem gz cpu cpu load
Ruby JRuby 67.41 2,442,336 1078 227.30 91% 86% 82% 80%
Ruby 54.24 510,868 1078 153.99 73% 98% 67% 72%
spectral-norm
source secs mem gz cpu cpu load
Ruby JRuby 216.27 804,576 776 832.38 98% 98% 98% 98%
Ruby 141.49 50,156 835 544.76 96% 97% 96% 97%
mandelbrot
source secs mem gz cpu cpu load
Ruby JRuby 853.95 835,516 849 3,340.35 99% 99% 99% 99%
Ruby 463.95 69,656 1019 1,852.06 100% 100% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
Ruby JRuby 8.77 2,206,072 509 24.43 76% 66% 70% 69%
Ruby 4.03 505,656 509 7.14 51% 83% 37% 9%
k-nucleotide
source secs mem gz cpu cpu load
Ruby JRuby 246.68 1,127,988 637 930.73 94% 97% 94% 93%
Ruby 101.95 381,312 852 367.82 84% 98% 85% 95%
pidigits
source secs mem gz cpu cpu load
Ruby JRuby 23.23 811,220 518 34.00 51% 22% 20% 57%
Ruby 3.14 477,092 478 3.12 0% 100% 2% 1%
Ruby JRuby

jruby 9.1.13.0 (2.3.3) 2017-09-06 8e1c115 Java HotSpot(TM) 64-Bit Server VM 9+181 on 9+181 +jit [linux-x86_64]

Ruby

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