The Computer Language
Benchmarks Game

all Ruby programs & measurements

ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]

source secs N mem gz cpu cpu load
binary-trees  #5 0.08  7 ? 1083 0.08 0% 88% 13% 0%
binary-trees  #5 0.34  14 18,580 1083 0.80 71% 73% 61% 36%
binary-trees  #5 47.66  21 511,724 1083 137.38 66% 90% 70% 63%
source secs N mem gz cpu cpu load
binary-trees  #2 0.07  7 ? 378 0.07 0% 0% 86% 0%
binary-trees  #2 0.99  14 11,472 378 0.99 100% 3% 0% 0%
binary-trees  #2 179.44  21 561,492 378 179.32 13% 88% 0% 0%
source secs N mem gz cpu cpu load
binary-trees  #3 0.08  7 ? 400 0.07 100% 0% 0% 0%
binary-trees  #3 1.00  14 11,036 400 1.00 99% 2% 0% 0%
binary-trees  #3 182.39  21 433,576 400 182.26 80% 21% 0% 0%
source secs N mem gz cpu cpu load
binary-trees  #4 0.56  7 ? 364 ? 4% 98% 2% 0%
binary-trees  #4 0.75  14 11,328 364 0.74 100% 4% 3% 3%
binary-trees  #4 127.91  21 547,416 364 127.78 0% 1% 1% 100%
source secs N mem gz cpu cpu load
binary-trees  0.07  7 ? 376 0.07 0% 0% 88% 13%
binary-trees  0.96  14 11,184 376 0.96 100% 3% 0% 1%
binary-trees  171.00  21 549,480 376 170.86 1% 1% 0% 100%
source secs N mem gz cpu cpu load
chameneos-redux  1.51  60,000 9,156 923 2.19 35% 27% 39% 38%
chameneos-redux  15.43  600,000 9,088 923 22.73 40% 42% 27% 32%
chameneos-redux  156.50  6,000,000 9,172 923 226.81 37% 37% 32% 32%
source secs N mem gz cpu cpu load
fannkuch-redux  10.46  10 8,676 384 10.45 12% 89% 0% 0%
fannkuch-redux  137.67  11 8,684 384 137.63 0% 1% 0% 100%
fannkuch-redux  1,979.05  12 8,828 384 1,978.59 1% 64% 36% 0%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 3.97  10 30,300 1432 14.91 100% 90% 89% 98%
fannkuch-redux  #2 48.00  11 32,104 1432 185.64 99% 90% 98% 99%
fannkuch-redux  #2 671.17  12 30,416 1432 2,613.66 98% 100% 100% 92%
source secs N mem gz cpu cpu load
fasta  #3 1.08  250,000 9,836 1002 1.08 100% 5% 0% 0%
fasta  #3 10.07  2,500,000 18,564 1002 10.06 79% 23% 0% 0%
fasta  #3 99.67  25,000,000 106,544 1002 99.65 0% 0% 100% 0%
source secs N mem gz cpu cpu load
fasta  #2 2.07  250,000 11,460 743 2.06 0% 1% 100% 0%
fasta  #2 20.64  2,500,000 31,300 743 20.63 1% 100% 0% 0%
fasta  #2 202.55  25,000,000 204,492 743 202.48 26% 75% 0% 0%
source secs N mem gz cpu cpu load
fasta  #5 1.64  250,000 9,076 995 1.63 0% 0% 100% 1%
fasta  #5 15.52  2,500,000 9,088 995 15.51 100% 2% 0% 0%
fasta  #5 154.38  25,000,000 8,892 995 154.24 0% 0% 100% 1%
source secs N mem gz cpu cpu load
fasta  #4 1.58  250,000 10,120 913 1.58 0% 100% 0% 0%
fasta  #4 14.43  2,500,000 26,428 913 14.42 0% 1% 100% 0%
fasta  #4 149.34  25,000,000 191,216 913 149.19 0% 7% 0% 94%
source secs N mem gz cpu cpu load
k-nucleotide  #7 1.56  250,000 96,824 858 4.55 74% 77% 64% 81%
k-nucleotide  #7 10.29  2,500,000 52,328 858 35.83 93% 82% 81% 97%
k-nucleotide  #7 95.27  25,000,000 381,212 858 342.07 97% 86% 86% 91%
source secs N mem gz cpu cpu load
k-nucleotide  #2 4.24  250,000 33,368 420 4.24 1% 100% 0% 0%
k-nucleotide  #2 39.01  2,500,000 52,132 420 38.99 0% 1% 100% 0%
k-nucleotide  #2 381.84  25,000,000 162,068 420 381.67 0% 1% 100% 0%
source secs N mem gz cpu cpu load
k-nucleotide  1.25  250,000 91,580 637 4.36 92% 80% 88% 90%
k-nucleotide  11.27  2,500,000 21,640 637 40.63 85% 92% 84% 100%
k-nucleotide  108.47  25,000,000 131,572 637 402.05 95% 92% 88% 96%
source secs N mem gz cpu cpu load
k-nucleotide  #3 4.25  250,000 44,904 540 4.25 6% 7% 47% 44%
k-nucleotide  #3 39.74  2,500,000 51,908 540 39.71 6% 6% 47% 45%
k-nucleotide  #3 398.19  25,000,000 159,688 540 397.91 50% 50% 1% 0%
source secs N mem gz cpu cpu load
mandelbrot  #7 4.88  1,000 9,844 973 14.87 76% 79% 87% 78%
mandelbrot  #7 41.48  4,000 21,864 973 152.18 92% 91% 92% 93%
mandelbrot  #7 580.44  16,000 45,584 973 2,203.06 95% 95% 95% 95%
source secs N mem gz cpu cpu load
mandelbrot  #2 2.20  1,000 63,040 925 8.52 96% 96% 97% 99%
mandelbrot  #2 32.35  4,000 66,720 925 128.95 100% 100% 100% 100%
mandelbrot  #2 520.83  16,000 127,152 925 2,081.07 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 1.81  1,000 35,144 1023 6.99 99% 96% 97% 96%
mandelbrot  #5 26.55  4,000 38,356 1023 105.92 100% 100% 100% 100%
mandelbrot  #5 Bad Output  16,000
source secs N mem gz cpu cpu load
mandelbrot  #6 4.03  1,000 10,064 918 13.45 84% 88% 82% 85%
mandelbrot  #6 41.63  4,000 12,588 918 152.25 92% 92% 92% 91%
mandelbrot  #6 542.14  16,000 98,652 918 2,056.53 95% 95% 95% 95%
source secs N mem gz cpu cpu load
meteor-contest  7.43  2,098 9,732 2768 7.42 0% 0% 0% 100%
source secs N mem gz cpu cpu load
meteor-contest  #2 4.64  2,098 9,648 2786 4.64 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 6.43  500,000 8,608 1137 6.43 11% 90% 0% 0%
n-body  #2 62.70  5,000,000 8,804 1137 62.69 84% 16% 0% 0%
n-body  #2 641.41  50,000,000 8,848 1137 641.26 8% 93% 0% 0%
source secs N mem gz cpu cpu load
pidigits  1.11  2,000 31,404 518 1.10 0% 0% 100% 1%
pidigits  9.63  6,000 95,892 518 9.61 1% 100% 0% 0%
pidigits  27.58  10,000 161,088 518 27.54 0% 1% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #5 0.23  2,000 704 485 0.21 5% 0% 95% 4%
pidigits  #5 1.14  6,000 69,088 485 1.14 1% 1% 4% 100%
pidigits  #5 2.97  10,000 306,652 485 2.96 1% 0% 3% 100%
source secs N mem gz cpu cpu load
pidigits  #2 0.53  2,000 18,220 658 0.53 0% 0% 100% 7%
pidigits  #2 3.24  6,000 88,088 658 3.23 0% 0% 100% 2%
pidigits  #2 8.31  10,000 158,000 658 8.30 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.42  50,000 10,544 322 0.41 100% 0% 0% 0%
regex-redux  #9 3.48  500,000 48,892 322 3.48 100% 1% 0% 0%
regex-redux  #9 34.26  5,000,000 312,324 322 34.24 0% 0% 100% 0%
source secs N mem gz cpu cpu load
regex-redux  #2 0.34  50,000 1,516 431 0.34 24% 38% 20% 21%
regex-redux  #2 2.69  500,000 49,168 431 2.64 19% 0% 46% 36%
regex-redux  #2 25.64  5,000,000 311,964 431 25.63 6% 4% 60% 31%
source secs N mem gz cpu cpu load
reverse-complement  0.12  250,000 8,508 545 0.18 17% 58% 42% 42%
reverse-complement  Failed  100,000,000
source secs N mem gz cpu cpu load
reverse-complement  #2 0.70  250,000 ? 264 ? 3% 99% 0% 1%
reverse-complement  #2 32.71  100,000,000 497,404 264 32.69 100% 1% 1% 0%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.82  250,000 ? 517 ? 1% 2% 95% 3%
reverse-complement  #3 68.06  100,000,000 ? 517 ? 49% 41% 35% 54%
source secs N mem gz cpu cpu load
spectral-norm  #5 1.64  500 33,448 835 5.31 82% 79% 81% 83%
spectral-norm  #5 37.92  3,000 47,468 835 143.41 95% 95% 95% 93%
spectral-norm  #5 119.33  5,500 49,312 835 461.61 97% 97% 97% 97%
source secs N mem gz cpu cpu load
spectral-norm  2.83  500 8,696 292 2.83 0% 0% 100% 0%
spectral-norm  99.73  3,000 9,328 292 99.71 1% 100% 0% 0%
spectral-norm  334.37  5,500 10,100 292 334.27 0% 1% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  #4 2.37  500 9,116 326 2.37 0% 1% 100% 0%
spectral-norm  #4 85.76  3,000 9,708 326 85.74 100% 1% 0% 0%
spectral-norm  #4 293.77  5,500 10,676 326 293.70 0% 1% 87% 13%
source secs N mem gz cpu cpu load
thread-ring  #2 8.69  500,000 22,016 215 12.21 14% 16% 55% 52%
thread-ring  #2 65.53  5,000,000 21,952 215 102.60 18% 19% 54% 58%
thread-ring  #2 631.11  50,000,000 21,868 215 996.15 52% 54% 20% 20%
source secs N mem gz cpu cpu load
thread-ring  3.17  500,000 21,964 331 4.00 60% 60% 4% 1%
thread-ring  29.83  5,000,000 22,272 331 37.94 22% 21% 38% 39%
thread-ring  291.31  50,000,000 22,000 331 371.11 35% 35% 25% 25%