The Computer Language
Benchmarks Game

Matz's Interpreter programs versus Ruby

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
Matz's Interpreter 5.62 506,888 517 9.05 19% 32% 35% 77%
Ruby 4.03 505,656 509 7.14 51% 83% 37% 9%
k-nucleotide
source secs mem gz cpu cpu load
Matz's Interpreter 308.82 126,784 637 1,016.19 67% 92% 72% 98%
Ruby 130.87 133,912 637 470.42 89% 95% 85% 93%
fasta
source secs mem gz cpu cpu load
Matz's Interpreter 531.81 275,524 913 531.37 68% 0% 1% 32%
Ruby 152.88 235,136 904 152.75 27% 17% 46% 12%
n-body
source secs mem gz cpu cpu load
Matz's Interpreter 4,519.81 3,972 1137 4,518.80 56% 1% 1% 44%
Ruby 723.69 8,916 1137 723.48 25% 86% 1% 9%
spectral-norm
source secs mem gz cpu cpu load
Matz's Interpreter 962.70 21,704 835 3,795.80 98% 99% 99% 99%
Ruby 141.49 50,156 835 544.76 96% 97% 96% 97%
pidigits
source secs mem gz cpu cpu load
Matz's Interpreter 28.96 16,904 518 28.91 100% 0% 1% 0%
Ruby 29.69 163,316 518 29.63 1% 100% 1% 1%
mandelbrot
source secs mem gz cpu cpu load
Matz's Interpreter 4,384.81 68,012 925 17,515.12 100% 100% 100% 100%
Ruby 563.88 138,736 925 2,249.32 100% 100% 100% 100%
binary-trees
source secs mem gz cpu cpu load
Matz's Interpreter 1,307.57 839,892 400 1,306.59 23% 20% 30% 29%
Ruby 186.48 434,456 400 186.32 2% 0% 100% 1%
fannkuch-redux
source secs mem gz cpu cpu load
Matz's Interpreter 20,154.11 4,648 384 20,148.46 21% 45% 13% 22%
Ruby 2,043.46 8,780 384 2,042.86 76% 1% 5% 20%
regex-redux
source secs mem gz cpu cpu load
Matz's Interpreter   Failed
Ruby 0.37 1,380 424 0.35 32% 41% 14% 32%
Matz's Interpreter

ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

Ruby

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