The Computer Language
23.03 Benchmarks Game

all Ruby programs & measurements

ruby 3.2.0
(2022-12-25
revision a528908271)
+YJIT [x86_64-linux]

source secs N mem gz cpu secs cpu load
binary-trees  #5 0.76  7 27,444 1008 0.16 0% 8% 0% 15%
binary-trees  #5 0.20  14 31,616 1008 0.38 75% 26% 50% 42%
binary-trees  #5 18.36  21 565,588 1008 52.32 60% 73% 88% 63%
source secs N mem gz cpu secs cpu load
binary-trees  #4 0.74  7 25,452 364 0.13 0% 4% 1% 15%
binary-trees  #4 0.32  14 29,004 364 0.32 0% 0% 0% 100%
binary-trees  #4 46.86  21 569,364 364 46.85 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
binary-trees  #2 0.76  7 25,420 378 0.14 1% 0% 0% 13%
binary-trees  #2 0.36  14 31,000 378 0.36 0% 2% 0% 100%
binary-trees  #2 48.74  21 569,392 378 48.73 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
binary-trees  #3 0.59  7 25,476 400 0.14 22% 0% 0% 0%
binary-trees  #3 0.37  14 29,596 400 0.37 0% 97% 0% 0%
binary-trees  #3 50.83  21 402,724 400 50.80 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
binary-trees  0.61  7 25,572 376 0.14 24% 0% 0% 0%
binary-trees  0.35  14 30,708 376 0.35 100% 0% 0% 0%
binary-trees  48.74  21 569,348 376 48.74 100% 0% 0% 0%
source secs N mem gz cpu secs cpu load
fannkuch-redux  #2 1.69  10 28,740 1455 3.98 62% 57% 58% 59%
fannkuch-redux  #2 12.17  11 29,064 1455 47.65 96% 99% 98% 99%
fannkuch-redux  #2 169.71  12 29,140 1455 656.90 96% 96% 100% 95%
source secs N mem gz cpu secs cpu load
fannkuch-redux  8.40  10 25,140 384 7.86 93% 0% 0% 0%
fannkuch-redux  103.77  11 24,988 384 103.77 0% 0% 100% 0%
fannkuch-redux  1,466.53  12 24,936 384 1,466.47 39% 0% 60% 0%
source secs N mem gz cpu secs cpu load
fasta  #3 1.04  250,000 27,732 1002 0.57 0% 9% 47% 0%
fasta  #3 5.11  2,500,000 36,492 1002 5.11 100% 0% 0% 0%
fasta  #3 46.23  25,000,000 124,612 1002 46.23 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
fasta  #5 1.75  250,000 26,884 995 1.27 7% 72% 11% 8%
fasta  #5 11.31  2,500,000 27,168 995 11.30 0% 100% 0% 0%
fasta  #5 112.99  25,000,000 27,152 995 112.98 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
fasta  #4 1.82  250,000 28,652 860 1.27 0% 0% 70% 0%
fasta  #4 11.77  2,500,000 51,032 860 11.77 0% 0% 99% 0%
fasta  #4 113.43  25,000,000 269,460 860 113.28 99% 0% 0% 0%
source secs N mem gz cpu secs cpu load
fasta  #2 1.64  250,000 28,916 743 1.20 72% 0% 0% 0%
fasta  #2 10.71  2,500,000 46,736 743 10.71 100% 2% 0% 1%
fasta  #2 105.47  25,000,000 223,092 743 105.46 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
fasta  #6 0.90  250,000 27,676 1069 0.40 0% 0% 0% 44%
fasta  #6 2.73  2,500,000 36,516 1069 2.72 0% 0% 0% 100%
fasta  #6 26.18  25,000,000 124,704 1069 26.18 100% 0% 0% 0%
source secs N mem gz cpu secs cpu load
k-nucleotide  #3 3.81  250,000 87,092 540 3.34 19% 23% 16% 29%
k-nucleotide  #3 28.44  2,500,000 97,924 540 28.26 24% 26% 21% 28%
k-nucleotide  #3 285.77  25,000,000 209,580 540 285.36 27% 23% 27% 24%
source secs N mem gz cpu secs cpu load
k-nucleotide  #2 3.47  250,000 78,632 420 2.99 0% 86% 0% 0%
k-nucleotide  #2 25.45  2,500,000 93,656 420 25.40 0% 1% 0% 99%
k-nucleotide  #2 249.91  25,000,000 202,672 420 249.53 0% 1% 79% 20%
source secs N mem gz cpu secs cpu load
k-nucleotide  #7 4.58  250,000 108,356 785 4.09 28% 17% 20% 25%
k-nucleotide  #7 28.71  2,500,000 121,192 785 28.45 25% 24% 21% 29%
k-nucleotide  #7 289.86  25,000,000 397,756 785 287.45 22% 27% 27% 23%
source secs N mem gz cpu secs cpu load
k-nucleotide  1.57  250,000 55,212 576 3.25 59% 42% 56% 50%
k-nucleotide  8.45  2,500,000 64,148 576 29.21 95% 79% 78% 92%
k-nucleotide  83.82  25,000,000 174,084 576 291.63 79% 92% 96% 81%
source secs N mem gz cpu secs cpu load
mandelbrot  #6 2.73  1,000 35,156 890 9.94 90% 90% 91% 93%
mandelbrot  #6 Failed  4,000
source secs N mem gz cpu secs cpu load
mandelbrot  #5 1.51  1,000 29,852 970 2.80 45% 54% 44% 44%
mandelbrot  #5 10.11  4,000 34,492 970 39.55 99% 99% 99% 99%
mandelbrot  #5 155.55  16,000 93,112 970 619.59 99% 100% 99% 99%
source secs N mem gz cpu secs cpu load
mandelbrot  #3 6.54  1,000 25,248 307 6.02 4% 1% 2% 92%
mandelbrot  #3 99.83  4,000 25,500 307 99.82 0% 0% 0% 100%
mandelbrot  #3 1,526.22  16,000 25,276 307 1,526.08 99% 1% 0% 0%
source secs N mem gz cpu secs cpu load
mandelbrot  #2 1.73  1,000 29,272 880 4.15 57% 58% 66% 57%
mandelbrot  #2 15.95  4,000 36,540 880 63.32 99% 99% 99% 99%
mandelbrot  #2 255.19  16,000 95,912 880 1,015.91 99% 100% 99% 99%
source secs N mem gz cpu secs cpu load
mandelbrot  #4 4.03  1,000 31,156 857 3.04 20% 18% 19% 19%
mandelbrot  #4 45.50  4,000 41,044 857 45.45 25% 25% 25% 25%
mandelbrot  #4 747.10  16,000 145,736 857 746.96 25% 25% 25% 25%
source secs N mem gz cpu secs cpu load
mandelbrot  #7 2.68  1,000 35,076 973 9.90 91% 94% 91% 92%
mandelbrot  #7 Failed  4,000
source secs N mem gz cpu secs cpu load
n-body  #3 2.52  500,000 25,484 1163 2.05 0% 0% 81% 0%
n-body  #3 19.16  5,000,000 25,536 1163 19.16 1% 0% 100% 0%
n-body  #3 190.96  50,000,000 25,644 1163 190.95 1% 1% 100% 1%
source secs N mem gz cpu secs cpu load
n-body  #2 2.76  500,000 25,448 1137 2.31 0% 83% 0% 0%
n-body  #2 21.84  5,000,000 25,796 1137 21.84 0% 0% 0% 100%
n-body  #2 218.13  50,000,000 25,684 1137 218.04 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
pidigits  #2 1.16  2,000 249,916 660 0.42 0% 35% 0% 0%
pidigits  #2 1.45  6,000 1,072,216 660 1.44 0% 0% 0% 100%
pidigits  #2 4.08  10,000 4,777,808 660 4.08 0% 0% 100% 1%
source secs N mem gz cpu secs cpu load
pidigits  #5 1.02  2,000 70,996 488 0.25 0% 1% 24% 2%
pidigits  #5 0.68  6,000 421,396 488 0.67 0% 0% 0% 100%
pidigits  #5 1.64  10,000 894,828 488 1.64 0% 0% 100% 1%
source secs N mem gz cpu secs cpu load
pidigits  1.38  2,000 89,816 518 0.79 57% 0% 0% 0%
pidigits  6.03  6,000 164,548 518 6.03 100% 6% 2% 3%
pidigits  17.24  10,000 167,116 518 17.24 100% 0% 0% 0%
source secs N mem gz cpu secs cpu load
regex-redux  #3 0.81  50,000 39,680 724 0.23 23% 15% 7% 6%
regex-redux  #3 1.42  500,000 61,860 724 0.92 35% 27% 91% 29%
regex-redux  #3 12.56  5,000,000 217,132 724 7.97 36% 31% 97% 31%
source secs N mem gz cpu secs cpu load
regex-redux  #9 1.01  50,000 30,464 321 0.44 39% 1% 0% 3%
regex-redux  #9 3.06  500,000 55,664 321 3.05 0% 99% 0% 0%
regex-redux  #9 29.71  5,000,000 217,156 321 29.71 1% 0% 0% 100%
source secs N mem gz cpu secs cpu load
regex-redux  #2 1.05  50,000 38,100 437 0.51 21% 3% 9% 14%
regex-redux  #2 2.89  500,000 64,944 437 2.86 22% 15% 24% 37%
regex-redux  #2 24.86  5,000,000 242,680 437 24.84 48% 15% 21% 17%
source secs N mem gz cpu secs cpu load
reverse-complement  #5 0.64  250,000 31,656 295 0.17 0% 28% 1% 0%
reverse-complement  #5 11.77  100,000,001 1,615,676 295 11.77 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
reverse-complement  #3 0.66  250,000 34,684 482 0.20 4% 1% 23% 1%
reverse-complement  #3 8.25  100,000,001 4,445,520 482 15.86 91% 10% 58% 32%
source secs N mem gz cpu secs cpu load
reverse-complement  #4 0.71  250,000 34,128 601 0.20 5% 1% 0% 21%
reverse-complement  #4 5.60  100,000,001 2,506,468 601 11.05 10% 51% 36% 99%
source secs N mem gz cpu secs cpu load
reverse-complement  0.69  250,000 37,936 514 0.25 27% 0% 0% 7%
reverse-complement  17.18  100,000,001 5,610,896 514 33.33 38% 29% 92% 38%
source secs N mem gz cpu secs cpu load
reverse-complement  #2 0.74  250,000 30,656 264 0.17 0% 22% 0% 0%
reverse-complement  #2 23.00  100,000,001 1,003,740 264 23.00 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
simple  5.48  1,000 25,580 335 4.87 0% 0% 0% 89%
simple  76.23  4,000 25,584 335 76.23 100% 0% 0% 0%
simple  1,219.29  16,000 25,492 335 1,219.23 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
simple  #2 5.19  1,000 25,504 307 4.71 88% 0% 0% 2%
simple  #2 72.13  4,000 25,636 307 72.12 97% 3% 0% 0%
simple  #2 1,151.03  16,000 25,596 307 1,150.98 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
spectral-norm  #5 1.76  500 25,960 758 3.54 48% 53% 49% 47%
spectral-norm  #5 17.82  3,000 26,992 758 64.60 91% 92% 89% 89%
spectral-norm  #5 57.56  5,500 28,488 758 210.10 89% 92% 92% 94%
source secs N mem gz cpu secs cpu load
spectral-norm  #4 1.81  500 25,616 326 1.24 11% 0% 1% 65%
spectral-norm  #4 40.22  3,000 26,376 326 40.22 0% 0% 1% 100%
spectral-norm  #4 134.68  5,500 27,356 326 134.67 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
spectral-norm  1.85  500 25,720 292 1.26 68% 0% 0% 0%
spectral-norm  40.63  3,000 26,092 292 40.63 0% 0% 100% 0%
spectral-norm  136.75  5,500 26,644 292 136.69 100% 1% 0% 0%
source secs N mem gz cpu secs cpu load
too simple  0.76  1,000,000 25,412 125 0.19 0% 0% 0% 25%
too simple  7.89  100,000,000 25,356 125 7.88 82% 0% 0% 18%
too simple  767.87  10,000,000,000 25,496 125 767.83 0% 100% 0% 0%