The Computer Language
Benchmarks Game

all Go programs & measurements

go version go1.16 linux/amd64

source secs N mem gz cpu cpu load
binary-trees  0.07  7 0 482 0.01 0% 14% 67% 14%
binary-trees  0.19  14 7,188 482 0.23 43% 33% 26% 32%
binary-trees  29.53  21 254,776 482 51.69 42% 42% 47% 45%
source secs N mem gz cpu cpu load
binary-trees  #8 0.07  7 0 1017 0.01 71% 0% 0% 0%
binary-trees  #8 0.06  14 936 1017 0.17 67% 83% 75% 71%
binary-trees  #8 12.80  21 385,036 1017 43.79 85% 87% 85% 86%
source secs N mem gz cpu cpu load
binary-trees  #3 0.07  7 0 799 0.00 0% 71% 13% 0%
binary-trees  #3 0.07  14 896 799 0.22 86% 86% 100% 83%
binary-trees  #3 13.83  21 371,912 799 53.70 97% 97% 99% 97%
source secs N mem gz cpu cpu load
binary-trees  #5 0.07  7 0 950 0.01 57% 0% 0% 0%
binary-trees  #5 0.07  14 940 950 0.21 75% 75% 86% 63%
binary-trees  #5 13.40  21 345,592 950 52.91 99% 99% 99% 99%
source secs N mem gz cpu cpu load
binary-trees  #6 0.10  7 0 611 0.00 0% 0% 78% 33%
binary-trees  #6 0.19  14 3,388 611 0.19 16% 32% 5% 100%
binary-trees  #6 35.71  21 410,828 611 36.67 2% 99% 1% 1%
source secs N mem gz cpu cpu load
binary-trees  #7 0.10  7 0 525 0.01 73% 0% 0% 30%
binary-trees  #7 0.18  14 7,072 525 0.22 24% 35% 29% 38%
binary-trees  #7 29.51  21 262,832 525 54.14 48% 47% 44% 44%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.16  10 4,200 896 0.28 80% 43% 44% 50%
fannkuch-redux  #2 0.84  11 4,248 896 3.25 99% 99% 94% 96%
fannkuch-redux  #2 11.34  12 14,860 896 45.21 100% 100% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.18  10 492 900 0.27 42% 38% 67% 70%
fannkuch-redux  0.83  11 1,188 900 3.24 99% 99% 98% 99%
fannkuch-redux  11.28  12 3,492 900 45.01 100% 100% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.15  10 500 969 0.19 29% 73% 50% 31%
fannkuch-redux  #3 0.58  11 1,280 969 2.23 97% 97% 98% 98%
fannkuch-redux  #3 7.59  12 2,064 969 30.28 100% 100% 100% 100%
source secs N mem gz cpu cpu load
fasta  0.12  250,000 496 1053 0.04 42% 25% 38% 42%
fasta  0.39  2,500,000 1,260 1053 0.39 5% 0% 3% 100%
fasta  3.63  25,000,000 1,264 1053 3.63 0% 100% 0% 0%
source secs N mem gz cpu cpu load
fasta  #2 0.10  250,000 0 1404 0.05 18% 80% 50% 9%
fasta  #2 0.15  2,500,000 10,712 1404 0.42 78% 67% 62% 88%
fasta  #2 1.28  25,000,000 11,276 1404 3.78 65% 86% 81% 65%
source secs N mem gz cpu cpu load
fasta  #3 0.09  250,000 0 1358 0.05 13% 22% 56% 100%
fasta  #3 0.17  2,500,000 2,344 1358 0.43 76% 75% 44% 75%
fasta  #3 1.50  25,000,000 3,056 1358 4.02 60% 78% 47% 80%
source secs N mem gz cpu cpu load
k-nucleotide  #7 0.30  250,000 24,740 1607 0.52 57% 52% 60% 44%
k-nucleotide  #7 1.14  2,500,000 39,468 1607 3.41 77% 77% 75% 86%
k-nucleotide  #7 8.30  25,000,000 160,300 1607 31.87 96% 98% 96% 95%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.26  250,000 22,556 1722 0.45 77% 73% 44% 65%
k-nucleotide  #3 1.20  2,500,000 36,328 1722 3.47 67% 81% 68% 92%
k-nucleotide  #3 9.48  25,000,000 150,892 1722 34.06 98% 91% 88% 84%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.27  250,000 17,536 1543 0.50 74% 52% 70% 48%
k-nucleotide  #4 1.26  2,500,000 31,060 1543 3.44 65% 70% 69% 83%
k-nucleotide  #4 9.82  25,000,000 145,984 1543 33.41 72% 98% 86% 86%
source secs N mem gz cpu cpu load
k-nucleotide  #6 0.52  250,000 22,880 1590 0.45 36% 42% 70% 76%
k-nucleotide  #6 1.11  2,500,000 36,428 1590 3.29 73% 79% 74% 92%
k-nucleotide  #6 9.21  25,000,000 151,744 1590 33.06 94% 85% 98% 83%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.09  1,000 0 837 0.11 80% 25% 33% 33%
mandelbrot  #2 0.46  4,000 3,036 837 1.71 100% 87% 89% 94%
mandelbrot  #2 6.81  16,000 33,600 837 27.13 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.14  1,000 0 700 0.11 15% 31% 69% 50%
mandelbrot  #6 0.44  4,000 2,524 700 1.72 98% 98% 98% 98%
mandelbrot  #6 6.84  16,000 32,832 700 27.25 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  0.10  1,000 0 823 0.09 80% 27% 22% 56%
mandelbrot  0.32  4,000 2,584 823 1.25 97% 97% 97% 100%
mandelbrot  4.88  16,000 33,824 823 19.33 100% 99% 99% 100%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.08  1,000 0 905 0.06 38% 14% 80% 25%
mandelbrot  #4 0.24  4,000 2,060 905 0.95 96% 100% 100% 100%
mandelbrot  #4 3.75  16,000 33,700 905 14.93 100% 100% 99% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.16  1,000 0 894 0.06 7% 19% 63% 81%
mandelbrot  #3 0.25  4,000 2,020 894 0.96 100% 96% 100% 96%
mandelbrot  #3 3.75  16,000 34,832 894 14.91 100% 99% 99% 100%
source secs N mem gz cpu cpu load
n-body  0.19  500,000 492 1310 0.08 100% 83% 85% 100%
n-body  0.69  5,000,000 1,184 1310 0.69 79% 100% 83% 81%
n-body  6.66  50,000,000 1,860 1310 6.66 0% 100% 3% 0%
source secs N mem gz cpu cpu load
n-body  #3 0.13  500,000 492 1200 0.07 79% 25% 17% 0%
n-body  #3 0.65  5,000,000 1,200 1200 0.65 0% 100% 5% 0%
n-body  #3 6.38  50,000,000 1,896 1200 6.39 0% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.14  500,000 492 1215 0.08 13% 53% 13% 86%
n-body  #2 0.70  5,000,000 1,200 1215 0.70 100% 0% 3% 0%
n-body  #2 6.88  50,000,000 1,860 1215 6.88 0% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #7 0.18  2,000 7,160 696 0.14 39% 11% 53% 25%
pidigits  #7 1.12  6,000 7,840 696 1.29 28% 34% 22% 29%
pidigits  #7 3.29  10,000 11,304 696 3.87 31% 29% 30% 29%
source secs N mem gz cpu cpu load
pidigits  #8 0.17  2,000 8,088 720 0.10 0% 6% 31% 59%
pidigits  #8 0.93  6,000 11,248 720 0.93 2% 0% 0% 99%
pidigits  #8 2.66  10,000 19,812 720 2.66 0% 1% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #2 0.21  2,000 6,040 733 0.09 38% 0% 16% 38%
pidigits  #2 0.60  6,000 8,756 733 0.61 28% 3% 48% 27%
pidigits  #2 1.69  10,000 9,244 733 1.72 30% 27% 46% 1%
source secs N mem gz cpu cpu load
pidigits  #3 0.16  2,000 8 603 0.06 0% 19% 31% 59%
pidigits  #3 0.50  6,000 8,112 603 0.51 50% 2% 50% 2%
pidigits  #3 1.29  10,000 9,072 603 1.31 23% 4% 37% 43%
source secs N mem gz cpu cpu load
pidigits  #4 0.20  2,000 8 683 0.06 63% 35% 5% 26%
pidigits  #4 0.37  6,000 7,776 683 0.38 5% 100% 3% 3%
pidigits  #4 1.00  10,000 8,952 683 1.01 0% 3% 99% 2%
source secs N mem gz cpu cpu load
pidigits  0.22  2,000 3,288 708 0.09 0% 68% 23% 10%
pidigits  0.53  6,000 9,172 708 0.55 0% 2% 98% 6%
pidigits  1.39  10,000 9,684 708 1.47 2% 33% 69% 1%
source secs N mem gz cpu cpu load
regex-redux  #4 0.30  50,000 8,344 829 0.40 30% 57% 41% 41%
regex-redux  #4 1.54  500,000 44,972 829 3.73 71% 55% 47% 72%
regex-redux  #4 14.78  5,000,000 380,968 829 36.35 66% 58% 53% 69%
source secs N mem gz cpu cpu load
regex-redux  #5 0.18  50,000 4,344 810 0.09 18% 39% 28% 13%
regex-redux  #5 0.46  500,000 39,212 810 0.65 39% 20% 69% 28%
regex-redux  #5 3.94  5,000,000 323,252 810 6.07 74% 30% 19% 33%
source secs N mem gz cpu cpu load
regex-redux  0.33  50,000 6,388 741 0.64 67% 76% 68% 64%
regex-redux  2.67  500,000 36,024 741 6.35 99% 52% 48% 49%
regex-redux  26.47  5,000,000 312,640 741 64.41 86% 48% 48% 62%
source secs N mem gz cpu cpu load
regex-redux  #3 0.38  50,000 7,444 829 0.68 46% 42% 39% 79%
regex-redux  #3 2.78  500,000 38,700 829 6.83 51% 69% 53% 79%
regex-redux  #3 25.99  5,000,000 388,348 829 63.59 49% 95% 53% 49%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.18  250,000 5,884 1338 0.02 76% 0% 0% 41%
reverse-complement  #6 1.42  100,000,000 1,344,600 1338 2.67 57% 36% 71% 24%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.24  250,000 2,380 611 0.02 50% 21% 48% 31%
reverse-complement  #2 1.79  100,000,000 826,628 611 1.82 14% 88% 1% 1%
source secs N mem gz cpu cpu load
reverse-complement  0.01  250,000 9,832 1254 0.02 50% 50% 0% 50%
reverse-complement  Failed  100,000,000
source secs N mem gz cpu cpu load
reverse-complement  #5 0.15  250,000 468 996 0.02 15% 79% 60% 33%
reverse-complement  #5 1.48  100,000,000 1,559,968 996 2.49 31% 83% 24% 32%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.21  250,000 1,324 605 0.02 30% 43% 0% 71%
reverse-complement  #3 1.92  100,000,000 826,360 605 1.96 3% 1% 100% 1%
source secs N mem gz cpu cpu load
spectral-norm  0.19  500 492 411 0.05 30% 28% 24% 100%
spectral-norm  1.60  3,000 1,832 411 1.60 100% 11% 0% 0%
spectral-norm  5.32  5,500 2,712 411 5.32 0% 0% 100% 0%
source secs N mem gz cpu cpu load
spectral-norm  #4 0.09  500 0 548 0.05 33% 0% 63% 22%
spectral-norm  #4 0.44  3,000 1,552 548 1.70 100% 96% 98% 98%
spectral-norm  #4 1.44  5,500 2,356 548 5.68 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #2 0.10  500 0 668 0.06 60% 11% 20% 22%
spectral-norm  #2 0.49  3,000 1,408 668 1.71 88% 90% 88% 92%
spectral-norm  #2 1.56  5,500 1,496 668 5.67 92% 92% 90% 90%