The Computer Language
Benchmarks Game

all Ruby programs & measurements

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

source secs N mem gz cpu cpu load
binary-trees  #5 0.07  7 ? 1078 0.06 0% 0% 100% 14%
binary-trees  #5 0.37  14 34,880 1078 0.87 47% 78% 92% 63%
binary-trees  #5 54.24  21 510,868 1078 153.99 73% 98% 67% 72%
source secs N mem gz cpu cpu load
binary-trees  #2 0.06  7 ? 378 0.06 0% 0% 100% 0%
binary-trees  #2 1.09  14 11,036 378 1.08 84% 5% 6% 21%
binary-trees  #2 179.00  21 563,084 378 178.84 1% 100% 0% 2%
source secs N mem gz cpu cpu load
binary-trees  #3 0.07  7 ? 400 0.06 100% 0% 0% 14%
binary-trees  #3 1.05  14 11,668 400 1.04 5% 4% 2% 99%
binary-trees  #3 186.48  21 434,456 400 186.32 2% 0% 100% 1%
source secs N mem gz cpu cpu load
binary-trees  #4 0.06  7 ? 364 0.06 14% 100% 0% 0%
binary-trees  #4 0.82  14 11,152 364 0.81 100% 6% 10% 5%
binary-trees  #4 144.64  21 562,464 364 144.49 1% 22% 78% 2%
source secs N mem gz cpu cpu load
binary-trees  0.06  7 ? 376 0.06 0% 0% 100% 0%
binary-trees  1.01  14 11,040 376 1.00 100% 1% 4% 4%
binary-trees  180.01  21 563,124 376 179.85 67% 1% 34% 1%
source secs N mem gz cpu cpu load
chameneos-redux  1.13  60,000 9,232 920 1.65 23% 39% 42% 30%
chameneos-redux  8.94  600,000 9,152 920 13.56 40% 30% 29% 41%
chameneos-redux  90.52  6,000,000 9,396 920 137.53 35% 35% 35% 34%
source secs N mem gz cpu cpu load
fannkuch-redux  10.59  10 8,788 384 10.58 1% 100% 1% 1%
fannkuch-redux  136.71  11 8,732 384 136.67 0% 1% 0% 100%
fannkuch-redux  2,043.46  12 8,780 384 2,042.86 76% 1% 5% 20%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 4.49  10 33,436 1426 16.32 99% 91% 96% 79%
fannkuch-redux  #2 52.72  11 33,180 1426 202.20 100% 90% 97% 97%
fannkuch-redux  #2 710.58  12 33,348 1426 2,761.73 99% 99% 95% 97%
source secs N mem gz cpu cpu load
fasta  #3 1.18  250,000 10,592 973 1.17 0% 2% 0% 99%
fasta  #3 11.14  2,500,000 19,892 973 11.12 67% 34% 1% 1%
fasta  #3 108.36  25,000,000 107,984 973 108.32 7% 10% 75% 10%
source secs N mem gz cpu cpu load
fasta  #2 2.20  250,000 11,284 732 2.20 1% 1% 100% 1%
fasta  #2 20.74  2,500,000 33,020 732 20.73 100% 0% 2% 1%
fasta  #2 216.58  25,000,000 208,196 732 216.50 55% 1% 1% 45%
source secs N mem gz cpu cpu load
fasta  #5 1.63  250,000 9,576 987 1.62 1% 1% 100% 0%
fasta  #5 15.06  2,500,000 9,768 987 15.05 0% 1% 46% 55%
fasta  #5 152.82  25,000,000 9,712 987 151.86 26% 36% 22% 18%
source secs N mem gz cpu cpu load
fasta  #4 1.58  250,000 9,776 904 1.58 2% 100% 0% 1%
fasta  #4 14.85  2,500,000 28,400 904 14.84 1% 0% 90% 11%
fasta  #4 152.88  25,000,000 235,136 904 152.75 27% 17% 46% 12%
source secs N mem gz cpu cpu load
k-nucleotide  #7 1.60  250,000 99,320 852 4.66 79% 79% 74% 63%
k-nucleotide  #7 10.74  2,500,000 211,384 852 37.73 96% 83% 94% 80%
k-nucleotide  #7 101.95  25,000,000 381,312 852 367.82 84% 98% 85% 95%
source secs N mem gz cpu cpu load
k-nucleotide  #2 4.88  250,000 34,268 420 4.28 1% 99% 1% 0%
k-nucleotide  #2 40.81  2,500,000 52,864 420 40.70 1% 1% 2% 100%
k-nucleotide  #2 402.22  25,000,000 163,104 420 401.69 1% 1% 100% 1%
source secs N mem gz cpu cpu load
k-nucleotide  1.38  250,000 97,564 637 4.50 91% 94% 72% 73%
k-nucleotide  12.21  2,500,000 22,516 637 42.68 85% 87% 95% 85%
k-nucleotide  130.87  25,000,000 133,912 637 470.42 89% 95% 85% 93%
source secs N mem gz cpu cpu load
k-nucleotide  #3 4.89  250,000 42,144 540 4.86 28% 19% 35% 20%
k-nucleotide  #3 42.66  2,500,000 54,024 540 42.55 24% 27% 28% 22%
k-nucleotide  #3 433.04  25,000,000 163,760 540 432.30 27% 25% 25% 26%
source secs N mem gz cpu cpu load
mandelbrot  #2 2.27  1,000 65,788 925 8.74 98% 96% 98% 96%
mandelbrot  #2 36.45  4,000 80,424 925 144.96 100% 100% 100% 100%
mandelbrot  #2 563.88  16,000 138,736 925 2,249.32 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 1.87  1,000 36,400 1019 7.26 97% 99% 97% 96%
mandelbrot  #5 28.60  4,000 38,900 1019 113.92 100% 100% 100% 100%
mandelbrot  #5 463.95  16,000 69,656 1019 1,852.06 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 5.46  1,000 13,652 885 16.98 87% 89% 88% 88%
mandelbrot  #6 44.46  4,000 27,656 885 156.66 93% 93% 93% 93%
mandelbrot  #6 582.84  16,000 148,668 885 2,167.99 95% 95% 95% 95%
source secs N mem gz cpu cpu load
meteor-contest  7.87  2,098 9,356 2768 7.86 0% 0% 100% 1%
source secs N mem gz cpu cpu load
meteor-contest  #2 5.04  2,098 9,200 2786 5.03 100% 1% 1% 1%
source secs N mem gz cpu cpu load
n-body  #2 7.18  500,000 8,892 1137 6.61 4% 1% 1% 96%
n-body  #2 68.51  5,000,000 9,116 1137 68.49 100% 2% 1% 0%
n-body  #2 723.69  50,000,000 8,916 1137 723.48 25% 86% 1% 9%
source secs N mem gz cpu cpu load
pidigits  1.23  2,000 102,388 518 1.22 0% 2% 100% 2%
pidigits  10.41  6,000 156,372 518 10.39 0% 54% 2% 46%
pidigits  29.69  10,000 163,316 518 29.63 1% 100% 1% 1%
source secs N mem gz cpu cpu load
pidigits  #5 0.20  2,000 ? 478 0.20 0% 0% 0% 100%
pidigits  #5 1.19  6,000 179,252 478 1.18 1% 2% 1% 100%
pidigits  #5 3.14  10,000 477,092 478 3.12 0% 100% 2% 1%
source secs N mem gz cpu cpu load
pidigits  #2 0.56  2,000 26,824 653 0.55 0% 0% 4% 98%
pidigits  #2 3.33  6,000 133,532 653 3.32 1% 1% 100% 1%
pidigits  #2 8.48  10,000 227,764 653 8.46 1% 100% 0% 0%
regex-redux  #8 Bad Output  50,000
regex-redux  #6 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  #9 0.45  50,000 10,360 315 0.44 4% 2% 100% 7%
regex-redux  #9 3.87  500,000 48,104 315 3.86 1% 1% 1% 100%
regex-redux  #9 37.89  5,000,000 260,460 315 37.87 1% 0% 100% 1%
source secs N mem gz cpu cpu load
regex-redux  #2 0.37  50,000 1,380 424 0.35 32% 41% 14% 32%
regex-redux  #2 2.98  500,000 46,636 424 2.96 16% 23% 22% 41%
regex-redux  #2 28.80  5,000,000 309,760 424 28.77 15% 48% 20% 19%
source secs N mem gz cpu cpu load
reverse-complement  0.12  250,000 ? 536 0.16 75% 23% 42% 8%
reverse-complement  0.54  2,500,000 156,520 536 0.94 71% 25% 51% 35%
reverse-complement  5.66  25,000,000 671,980 536 10.35 93% 59% 27% 6%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.15  250,000 ? 255 0.14 0% 0% 100% 0%
reverse-complement  #2 0.94  2,500,000 33,304 255 0.93 1% 3% 100% 0%
reverse-complement  #2 8.14  25,000,000 133,304 255 8.13 100% 0% 0% 1%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.16  250,000 ? 509 0.14 14% 20% 63% 31%
reverse-complement  #3 0.79  2,500,000 33,932 509 0.70 43% 21% 56% 19%
reverse-complement  #3 4.03  25,000,000 505,656 509 7.14 51% 83% 37% 9%
source secs N mem gz cpu cpu load
spectral-norm  #5 1.94  500 9,712 835 5.83 82% 85% 79% 79%
spectral-norm  #5 42.06  3,000 49,652 835 153.34 92% 92% 91% 92%
spectral-norm  #5 141.49  5,500 50,156 835 544.76 96% 97% 96% 97%
source secs N mem gz cpu cpu load
spectral-norm  2.95  500 8,912 292 2.95 99% 0% 2% 1%
spectral-norm  103.73  3,000 9,504 292 103.70 1% 0% 0% 100%
spectral-norm  366.89  5,500 10,036 292 366.79 0% 39% 1% 62%
source secs N mem gz cpu cpu load
spectral-norm  #4 2.38  500 9,212 326 2.37 0% 0% 1% 100%
spectral-norm  #4 90.02  3,000 9,844 326 89.99 1% 0% 100% 1%
spectral-norm  #4 306.03  5,500 10,884 326 305.95 6% 0% 1% 94%
source secs N mem gz cpu cpu load
thread-ring  #2 11.05  500,000 21,228 215 14.74 22% 35% 34% 38%
thread-ring  #2 96.55  5,000,000 21,404 215 132.93 31% 34% 33% 33%
thread-ring  #2 1,015.32  50,000,000 37,412 215 1,375.63 32% 32% 33% 32%
source secs N mem gz cpu cpu load
thread-ring  3.41  500,000 21,440 331 4.43 24% 37% 35% 24%
thread-ring  30.81  5,000,000 21,388 331 40.06 40% 19% 19% 41%
thread-ring  309.04  50,000,000 21,228 331 403.63 27% 32% 33% 27%