Ruby programs versus Ruby JRuby by benchmark task performance pidigits source secs mem gz cpu cpu load Ruby 2.97 306,652 485 2.96 1% 0% 3% 100% Ruby JRuby 24.35 804,068 518 35.84 20% 20% 38% 71% reverse-complement source secs mem gz cpu cpu load Ruby 32.71 497,404 264 32.69 100% 1% 1% 0% Ruby JRuby 125.09 3,556,432 545 106.69 45% 61% 63% 52% k-nucleotide source secs mem gz cpu cpu load Ruby 95.27 381,212 858 342.07 97% 86% 86% 91% Ruby JRuby 243.38 1,151,568 540 867.73 92% 87% 89% 89% spectral-norm source secs mem gz cpu cpu load Ruby 119.33 49,312 835 461.61 97% 97% 97% 97% Ruby JRuby 205.48 781,524 776 802.05 98% 98% 98% 98% mandelbrot source secs mem gz cpu cpu load Ruby 520.83 127,152 925 2,081.07 100% 100% 100% 100% Ruby JRuby 816.48 838,956 973 3,175.34 98% 98% 98% 97% binary-trees source secs mem gz cpu cpu load Ruby 47.66 511,724 1083 137.38 66% 90% 70% 63% Ruby JRuby 63.73 2,333,064 1083 235.59 95% 94% 95% 94% fasta source secs mem gz cpu cpu load Ruby 99.67 106,544 1002 99.65 0% 0% 100% 0% Ruby JRuby 131.71 823,720 1002 141.58 9% 19% 27% 53% regex-redux source secs mem gz cpu cpu load Ruby 25.64 311,964 431 25.63 6% 4% 60% 31% Ruby JRuby 28.52 1,375,512 431 63.99 74% 60% 41% 51% fannkuch-redux source secs mem gz cpu cpu load Ruby 671.17 30,416 1432 2,613.66 98% 100% 100% 92% Ruby JRuby 536.23 782,020 1432 2,060.19 96% 98% 100% 91% n-body source secs mem gz cpu cpu load Ruby 641.41 8,848 1137 641.26 8% 93% 0% 0% Ruby JRuby 407.01 804,512 1137 421.31 24% 43% 12% 26% Ruby ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux] Ruby JRuby jruby 9.1.16.0 (2.3.3) 2018-02-21 8f3f95a Java HotSpot(TM) 64-Bit Server VM 10+46 on 10+46 +jit [linux-x86_64] vs JRuby vs PHP vs Python