The Computer Language
Benchmarks Game

Ruby versus Truffle Ruby fastest programs

by faster benchmark performance

reverse-complement
source secs mem gz cpu cpu load
Ruby 23.09 1,604,952 295 40.79 59% 45% 35% 40%
Truffle Ruby 319.15 3,378,584 264 388.24 59% 43% 53% 42%
regex-redux
source secs mem gz cpu cpu load
Ruby 23.58 269,664 751 25.12 79% 68% 74% 85%
Truffle Ruby 169.68 2,250,496 751 257.12 35% 35% 51% 31%
binary-trees
source secs mem gz cpu cpu load
Ruby 64.07 488,156 1107 218.34 98% 78% 90% 83%
Truffle Ruby 104.00 2,294,396 364 187.65 58% 41% 37% 47%
fasta
source secs mem gz cpu cpu load
Ruby 63.32 98,996 1069 106.23 39% 28% 61% 42%
Truffle Ruby 50.87 529,252 1069 92.34 39% 38% 58% 48%
k-nucleotide
source secs mem gz cpu cpu load
Ruby 189.81 137,920 667 714.29 94% 97% 96% 91%
Truffle Ruby 117.64 1,453,232 880 401.84 96% 86% 85% 76%
fannkuch-redux
source secs mem gz cpu cpu load
Ruby 545.63 14,968 1454 2,111.38 94% 97% 97% 100%
Truffle Ruby 82.26 464,620 1454 257.40 60% 99% 56% 99%
n-body
source secs mem gz cpu cpu load
Ruby 387.73 16,196 1137 433.22 48% 4% 10% 51%
Truffle Ruby 42.28 343,684 1137 58.67 14% 98% 15% 13%
mandelbrot
source secs mem gz cpu cpu load
Ruby 452.81 59,660 954 1,805.81 100% 100% 100% 100%
Truffle Ruby 49.05 569,816 954 187.90 96% 96% 96% 96%
spectral-norm
source secs mem gz cpu cpu load
Ruby 237.96 18,312 326 280.55 97% 4% 6% 12%
Truffle Ruby 25.51 473,216 292 50.45 36% 91% 37% 34%
pidigits
source secs mem gz cpu cpu load
Ruby 3.99 ? 485 ? 58% 61% 50% 43%
Truffle Ruby   Make Error
Ruby

ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
--jit

Truffle Ruby

truffleruby 1.0.0-rc9, like ruby 2.4.4, GraalVM CE Native [x86_64-linux]