The Computer Language
Benchmarks Game

all Ruby programs & measurements

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
--jit

source secs N mem gz cpu cpu load
binary-trees  #5 4.52  7 22,260 1096 1.11 29% 22% 70% 45%
binary-trees  #5 2.53  14 28,948 1096 4.14 40% 97% 32% 48%
binary-trees  #5 44.61  21 531,600 1096 123.74 67% 72% 60% 81%
source secs N mem gz cpu cpu load
binary-trees  #2 3.72  7 22,456 378 0.56 55% 3% 34% 39%
binary-trees  #2 2.24  14 28,072 378 2.86 92% 88% 4% 23%
binary-trees  #2 148.53  21 577,904 378 149.46 68% 2% 1% 33%
source secs N mem gz cpu cpu load
binary-trees  #3 3.58  7 22,476 400 0.56 70% 9% 7% 46%
binary-trees  #3 2.17  14 28,360 400 2.77 92% 77% 25% 13%
binary-trees  #3 149.94  21 449,240 400 150.65 23% 22% 42% 16%
source secs N mem gz cpu cpu load
binary-trees  #4 3.91  7 22,528 364 0.56 32% 34% 21% 49%
binary-trees  #4 2.12  14 28,000 364 2.69 95% 89% 11% 12%
binary-trees  #4 112.63  21 577,948 364 113.52 62% 0% 1% 39%
source secs N mem gz cpu cpu load
binary-trees  3.50  7 22,472 376 0.58 57% 11% 1% 47%
binary-trees  2.13  14 28,040 376 2.73 20% 91% 38% 46%
binary-trees  148.19  21 577,892 376 149.08 1% 97% 4% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  11.99  10 22,412 384 9.67 91% 2% 2% 19%
fannkuch-redux  112.79  11 25,516 384 113.17 35% 0% 0% 66%
fannkuch-redux  1,738.10  12 25,520 384 1,738.02 26% 22% 52% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 8.94  10 26,640 1444 22.06 95% 66% 67% 75%
fannkuch-redux  #2 25.16  11 26,704 1444 94.22 99% 95% 91% 91%
fannkuch-redux  #2 303.19  12 26,680 1444 1,167.69 100% 91% 98% 97%
source secs N mem gz cpu cpu load
fasta  #3 5.59  250,000 23,308 1002 3.66 87% 59% 11% 16%
fasta  #3 8.40  2,500,000 30,872 1002 10.83 19% 84% 18% 10%
fasta  #3 79.15  25,000,000 123,264 1002 81.57 2% 33% 69% 1%
source secs N mem gz cpu cpu load
fasta  #6 6.08  250,000 23,180 1069 3.91 33% 29% 41% 75%
fasta  #6 6.01  2,500,000 30,604 1069 8.55 30% 100% 7% 9%
fasta  #6 51.74  25,000,000 123,240 1069 54.31 43% 44% 2% 17%
source secs N mem gz cpu cpu load
fasta  #2 5.39  250,000 25,264 743 3.05 72% 21% 9% 72%
fasta  #2 19.43  2,500,000 41,512 743 20.91 19% 25% 64% 1%
fasta  #2 179.24  25,000,000 145,640 743 180.65 58% 2% 42% 2%
source secs N mem gz cpu cpu load
fasta  #5 5.82  250,000 22,960 995 3.75 82% 39% 10% 43%
fasta  #5 15.43  2,500,000 26,036 995 17.09 5% 58% 45% 5%
fasta  #5 145.84  25,000,000 26,024 995 146.96 3% 41% 60% 1%
source secs N mem gz cpu cpu load
fasta  #4 6.00  250,000 23,636 913 3.76 62% 44% 12% 43%
fasta  #4 14.36  2,500,000 40,644 913 16.06 91% 4% 3% 15%
fasta  #4 143.13  25,000,000 226,708 913 144.13 25% 16% 62% 3%
source secs N mem gz cpu cpu load
k-nucleotide  #7 8.63  250,000 77,484 859 6.71 86% 28% 27% 82%
k-nucleotide  #7 10.94  2,500,000 84,484 859 37.86 83% 91% 85% 98%
k-nucleotide  #7 103.71  25,000,000 400,128 859 364.67 95% 85% 95% 89%
source secs N mem gz cpu cpu load
k-nucleotide  #2 7.66  250,000 53,824 420 4.96 45% 26% 20% 70%
k-nucleotide  #2 37.18  2,500,000 76,044 420 37.41 2% 99% 1% 1%
k-nucleotide  #2 365.72  25,000,000 186,304 420 365.82 97% 1% 0% 3%
source secs N mem gz cpu cpu load
k-nucleotide  6.39  250,000 24,992 644 9.25 91% 36% 34% 74%
k-nucleotide  11.19  2,500,000 36,048 644 40.69 94% 87% 94% 90%
k-nucleotide  105.63  25,000,000 146,104 644 382.27 95% 94% 88% 86%
source secs N mem gz cpu cpu load
k-nucleotide  #3 7.93  250,000 76,384 540 5.27 32% 43% 53% 28%
k-nucleotide  #3 38.59  2,500,000 85,864 540 39.13 17% 34% 36% 17%
k-nucleotide  #3 385.74  25,000,000 194,380 540 385.93 17% 32% 30% 22%
source secs N mem gz cpu cpu load
mandelbrot  #7 6.44  1,000 31,984 973 22.43 87% 92% 84% 90%
mandelbrot  #7 Failed  4,000
source secs N mem gz cpu cpu load
mandelbrot  #4 9.43  1,000 27,432 846 7.60 31% 44% 39% 36%
mandelbrot  #4 76.42  4,000 32,628 846 77.93 32% 17% 29% 26%
mandelbrot  #4 1,200.59  16,000 79,152 846 1,202.78 21% 28% 30% 22%
source secs N mem gz cpu cpu load
mandelbrot  #2 8.74  1,000 25,876 931 21.17 92% 59% 58% 84%
mandelbrot  #2 28.09  4,000 27,792 931 103.42 99% 98% 100% 99%
mandelbrot  #2 335.33  16,000 66,188 931 1,336.01 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 11.21  1,000 22,680 307 8.82 17% 7% 13% 83%
mandelbrot  #3 129.35  4,000 25,848 307 129.71 1% 68% 32% 1%
mandelbrot  #3 2,090.60  16,000 25,912 307 2,090.33 16% 32% 35% 19%
source secs N mem gz cpu cpu load
mandelbrot  #5 5.72  1,000 27,172 1037 9.20 79% 58% 58% 54%
mandelbrot  #5 32.95  4,000 28,688 1037 130.63 99% 100% 99% 100%
mandelbrot  #5 524.72  16,000 60,080 1037 2,094.54 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 6.45  1,000 32,004 918 22.54 90% 86% 87% 89%
mandelbrot  #6 Failed  4,000
source secs N mem gz cpu cpu load
n-body  #2 8.26  500,000 22,556 1137 7.79 32% 49% 32% 61%
n-body  #2 38.24  5,000,000 25,460 1137 40.58 95% 6% 3% 5%
n-body  #2 374.51  50,000,000 25,668 1137 376.76 67% 20% 2% 14%
source secs N mem gz cpu cpu load
pidigits  5.77  2,000 64,464 518 3.40 76% 17% 35% 31%
pidigits  9.88  6,000 174,268 518 11.83 15% 88% 12% 7%
pidigits  28.10  10,000 192,072 518 30.23 93% 3% 8% 5%
source secs N mem gz cpu cpu load
pidigits  #5 4.16  2,000 22,464 485 0.73 10% 79% 73% 6%
pidigits  #5 2.24  6,000 216,024 485 2.90 74% 36% 19% 100%
pidigits  #5 3.23  10,000 380,036 485 4.79 12% 50% 52% 37%
source secs N mem gz cpu cpu load
pidigits  #2 5.67  2,000 45,432 658 3.07 62% 22% 14% 65%
pidigits  #2 3.49  6,000 112,576 658 6.38 22% 51% 14% 99%
pidigits  #2 8.78  10,000 197,868 658 11.84 20% 22% 86% 11%
source secs N mem gz cpu cpu load
regex-redux  #3 4.30  50,000 31,404 726 1.35 87% 73% 79% 80%
regex-redux  #3 1.96  500,000 57,400 726 1.64 45% 50% 68% 52%
regex-redux  #3 15.97  5,000,000 277,888 726 9.38 41% 76% 59% 36%
source secs N mem gz cpu cpu load
regex-redux  #9 3.81  50,000 24,260 335 0.96 60% 42% 18% 37%
regex-redux  #9 4.11  500,000 62,600 335 4.46 35% 0% 1% 76%
regex-redux  #9 39.57  5,000,000 325,312 335 40.02 0% 100% 3% 0%
source secs N mem gz cpu cpu load
regex-redux  #2 4.05  50,000 32,668 431 0.92 51% 43% 16% 41%
regex-redux  #2 3.37  500,000 69,656 431 3.74 36% 9% 12% 57%
regex-redux  #2 32.65  5,000,000 328,556 431 33.07 29% 12% 36% 27%
source secs N mem gz cpu cpu load
reverse-complement  0.52  250,000 27,228 548 1.00 98% 92% 52% 76%
reverse-complement  Failed  100,000,000
source secs N mem gz cpu cpu load
reverse-complement  #2 4.55  250,000 25,508 264 0.66 57% 22% 2% 67%
reverse-complement  #2 31.53  100,000,000 511,784 264 32.20 12% 1% 2% 89%
source secs N mem gz cpu cpu load
reverse-complement  #5 4.21  250,000 26,736 295 0.64 53% 6% 9% 56%
reverse-complement  #5 20.99  100,000,000 1,611,616 295 21.45 98% 7% 18% 9%
source secs N mem gz cpu cpu load
reverse-complement  #3 3.85  250,000 24,152 517 1.22 62% 28% 26% 40%
reverse-complement  #3 118.84  100,000,000 1,513,868 517 39.80 59% 37% 48% 66%
source secs N mem gz cpu cpu load
reverse-complement  #4 6.50  250,000 23,844 601 1.36 79% 16% 8% 64%
reverse-complement  #4 60.56  100,000,000 2,009,908 601 63.55 33% 21% 24% 49%
source secs N mem gz cpu cpu load
spectral-norm  #5 36.86  500 23,444 839 131.71 94% 93% 89% 95%
spectral-norm  #5 72.88  3,000 25,468 839 283.51 98% 98% 97% 98%
spectral-norm  #5 150.32  5,500 26,188 839 584.21 97% 97% 97% 97%
source secs N mem gz cpu cpu load
spectral-norm  6.94  500 22,696 292 4.20 78% 20% 11% 55%
spectral-norm  83.60  3,000 25,404 292 85.27 43% 1% 2% 58%
spectral-norm  289.55  5,500 25,404 292 291.17 87% 1% 5% 9%
source secs N mem gz cpu cpu load
spectral-norm  #4 5.86  500 22,320 326 3.23 83% 12% 30% 34%
spectral-norm  #4 61.33  3,000 25,224 326 62.00 1% 2% 100% 0%
spectral-norm  #4 209.02  5,500 25,408 326 209.65 0% 1% 100% 0%