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 297.31 663,560 1137 296.80 0% 1% 1% 100%
Ruby 1,429.79 7,284 1137 1,429.24 1% 18% 83% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Ruby JRuby 682.08 669,712 384 681.85 0% 1% 1% 100%
Ruby 2,604.22 7,112 384 2,603.32 1% 17% 72% 100%
mandelbrot
source secs KB gz cpu cpu load
Ruby JRuby 97.64 647,300 1019 96.90 0% 1% 1% 100%
Ruby 222.26 7,012 307 222.17 1% 0% 0% 100%
fasta
source secs KB gz cpu cpu load
Ruby JRuby 91.45 690,332 973 91.34 1% 0% 1% 100%
Ruby 197.80 197,072 904 197.62 1% 1% 100% 100%
spectral-norm
source secs KB gz cpu cpu load
Ruby JRuby 294.74 655,348 326 294.26 0% 1% 1% 100%
Ruby 520.06 7,584 326 519.86 0% 1% 100% 100%
k-nucleotide
source secs KB gz cpu cpu load
Ruby JRuby 510.04 962,244 637 509.15 0% 1% 1% 100%
Ruby 672.83 160,276 420 672.50 0% 2% 99% 100%
binary-trees
source secs KB gz cpu cpu load
Ruby JRuby 179.45 1,429,000 402 179.16 0% 2% 1% 100%
Ruby 179.60 117,640 402 179.49 1% 1% 100% 100%
regex-dna
source secs KB gz cpu cpu load
Ruby JRuby 54.76 765,856 343 54.72 0% 1% 1% 100%
Ruby 26.32 154,492 442 26.30 1% 0% 100% 100%
reverse-complement
source secs KB gz cpu cpu load
Ruby JRuby 18.80 2,240,988 509 18.73 0% 1% 1% 100%
Ruby 6.17 541,352 509 6.14 0% 1% 1% 100%
pidigits
source secs KB gz cpu cpu load
Ruby JRuby 34.41 651,944 518 34.34 0% 1% 1% 100%
Ruby 4.04 626,044 478 4.02 0% 1% 1% 100%
Ruby JRuby

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

Ruby

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