The Computer Language
Benchmarks Game

all C++ g++ programs & measurements

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609

source secs N mem gz cpu cpu load
binary-trees  #3  12 ? 993 0.02
binary-trees  #3 0.27  16 868 993 0.58 30% 100% 46% 48%
binary-trees  #3 7.74  20 362,676 993 26.36 88% 97% 71% 87%
source secs N mem gz cpu cpu load
binary-trees  #2 0.08  12 ? 553 0.07 0% 0% 89% 0%
binary-trees  #2 1.77  16 11,000 553 1.76 100% 2% 1% 0%
binary-trees  #2 39.12  20 199,680 553 39.08 2% 0% 100% 1%
source secs N mem gz cpu cpu load
binary-trees  0.04  12 ? 796 0.03 100% 33% 25% 67%
binary-trees  0.54  16 111,832 796 1.74 89% 89% 89% 93%
binary-trees  13.44  20 2,941,392 796 51.97 99% 97% 97% 97%
source secs N mem gz cpu cpu load
binary-trees  #8 0.02  12 ? 852 0.03 0% 50% 50% 100%
binary-trees  #8 0.28  16 1,016 852 0.65 54% 36% 93% 73%
binary-trees  #8 7.83  20 362,732 852 25.72 95% 77% 96% 89%
source secs N mem gz cpu cpu load
binary-trees  #9 0.04  12 ? 846 0.04 25% 25% 25% 80%
binary-trees  #9 0.16  16 ? 846 0.48 88% 75% 69% 80%
binary-trees  #9 3.36  20 158,320 846 10.59 81% 82% 78% 75%
source secs N mem gz cpu cpu load
binary-trees  #6 0.02  12 ? 892 0.04 0% 50% 50% 100%
binary-trees  #6 0.28  16 1,016 892 0.60 50% 30% 54% 89%
binary-trees  #6 7.23  20 362,820 892 24.45 53% 92% 100% 96%
chameneos-redux  Make Error  60,000
source secs N mem gz cpu cpu load
chameneos-redux  #5 1.06  60,000 3,308 1994 2.10 99% 2% 98% 3%
chameneos-redux  #5 0.38  600,000 752 1994 1.41 100% 97% 92% 95%
chameneos-redux  #5 3.26  6,000,000 3,292 1994 12.62 100% 100% 94% 94%
source secs N mem gz cpu cpu load
chameneos-redux  #2 0.04  60,000 ? 2016 0.12 20% 100% 100% 100%
chameneos-redux  #2 0.27  600,000 768 2016 0.88 100% 77% 73% 85%
chameneos-redux  #2 3.29  6,000,000 1,860 2016 11.55 100% 100% 100% 52%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.09  10 ? 1439 0.29 89% 89% 88% 100%
fannkuch-redux  #4 0.96  11 1,848 1439 3.72 97% 100% 98% 95%
fannkuch-redux  #4 13.17  12 1,944 1439 51.41 93% 100% 98% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.09  10 ? 1059 0.33 90% 100% 100% 89%
fannkuch-redux  1.08  11 1,632 1059 4.18 94% 98% 99% 100%
fannkuch-redux  14.69  12 1,852 1059 57.46 94% 99% 98% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.08  10 ? 950 0.27 86% 88% 86% 88%
fannkuch-redux  #5 0.80  11 2,468 950 3.09 98% 98% 99% 95%
fannkuch-redux  #5 10.58  12 2,520 950 41.88 100% 100% 99% 98%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.11  10 ? 1440 0.30 100% 40% 67% 73%
fannkuch-redux  #2 0.98  11 1,856 1440 3.78 99% 95% 99% 99%
fannkuch-redux  #2 13.36  12 1,928 1440 52.26 99% 98% 100% 94%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.33  10 784 593 0.33 6% 100% 0% 9%
fannkuch-redux  #3 4.21  11 640 593 4.20 100% 0% 0% 3%
fannkuch-redux  #3 56.91  12 740 593 56.90 1% 100% 0% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.17  10 ? 1150 0.16 100% 6% 0% 0%
fannkuch-redux  #7 1.89  11 656 1150 1.88 1% 1% 0% 100%
fannkuch-redux  #7 24.05  12 780 1150 24.04 100% 1% 1% 0%
source secs N mem gz cpu cpu load
fasta  #4 0.07  250,000 ? 1266 0.06 86% 0% 0% 0%
fasta  #4 0.66  2,500,000 644 1266 0.65 3% 3% 0% 100%
fasta  #4 6.15  25,000,000 784 1266 6.15 100% 1% 1% 0%
source secs N mem gz cpu cpu load
fasta  #2 0.06  250,000 ? 1105 0.05 60% 0% 40% 14%
fasta  #2 0.49  2,500,000 1,540 1105 0.49 2% 0% 100% 0%
fasta  #2 4.56  25,000,000 1,772 1105 4.55 1% 0% 100% 1%
source secs N mem gz cpu cpu load
fasta  #3 0.05  250,000 ? 1286 0.05 0% 0% 0% 100%
fasta  #3 0.46  2,500,000 1,672 1286 0.46 100% 0% 6% 0%
fasta  #3 4.21  25,000,000 1,792 1286 4.20 0% 100% 2% 0%
source secs N mem gz cpu cpu load
fasta  0.07  250,000 ? 1033 0.07 100% 0% 0% 13%
fasta  0.66  2,500,000 1,660 1033 0.66 100% 0% 8% 0%
fasta  6.23  25,000,000 1,632 1033 6.22 0% 2% 100% 1%
source secs N mem gz cpu cpu load
fasta  #6 0.03  250,000 ? 2291 0.06 75% 100% 75% 50%
fasta  #6 0.16  2,500,000 ? 2291 0.55 88% 88% 88% 82%
fasta  #6 1.47  25,000,000 9,484 2291 5.13 88% 88% 87% 88%
source secs N mem gz cpu cpu load
fasta  #5 0.04  250,000 ? 2313 0.08 75% 67% 50% 60%
fasta  #5 0.18  2,500,000 ? 2313 0.57 88% 83% 82% 76%
fasta  #5 1.50  25,000,000 4,092 2313 5.17 87% 87% 87% 87%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.42  250,000 22,588 1252 0.65 33% 27% 84% 36%
k-nucleotide  #3 1.35  2,500,000 54,672 1252 2.86 48% 47% 97% 50%
k-nucleotide  #3 7.15  25,000,000 164,080 1252 24.21 82% 83% 80% 96%
source secs N mem gz cpu cpu load
k-nucleotide  0.22  250,000 804 1428 0.35 96% 55% 14% 30%
k-nucleotide  1.29  2,500,000 61,972 1428 2.06 68% 66% 10% 41%
k-nucleotide  8.82  25,000,000 757,092 1428 19.48 99% 92% 15% 17%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.03  1,000 ? 1017 0.10 100% 100% 100% 75%
mandelbrot  #7 0.40  4,000 928 1017 1.55 100% 97% 100% 98%
mandelbrot  #7 6.10  16,000 34,056 1017 24.29 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.03  1,000 ? 726 0.09 100% 75% 100% 80%
mandelbrot  #9 0.39  4,000 948 726 1.43 92% 90% 92% 98%
mandelbrot  #9 5.82  16,000 33,952 726 22.40 96% 95% 95% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.36  1,000 772 414 0.36 100% 0% 3% 0%
mandelbrot  #3 5.68  4,000 1,640 414 5.68 0% 0% 100% 1%
mandelbrot  #3 90.38  16,000 1,672 414 90.35 1% 100% 1% 1%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.04  1,000 ? 742 0.10 80% 100% 33% 33%
mandelbrot  #8 0.52  4,000 4,716 742 1.40 98% 38% 100% 37%
mandelbrot  #8 8.11  16,000 33,944 742 22.04 37% 100% 37% 100%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.12  1,000 ? 687 0.12 0% 0% 100% 0%
mandelbrot  #2 1.87  4,000 4,592 687 1.86 100% 1% 0% 2%
mandelbrot  #2 29.58  16,000 34,144 687 29.57 1% 1% 1% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.11  1,000 ? 590 0.10 0% 0% 92% 0%
mandelbrot  #5 1.54  4,000 4,180 590 1.53 71% 29% 1% 2%
mandelbrot  #5 24.17  16,000 33,608 590 24.16 0% 1% 1% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.03  1,000 ? 1035 0.11 100% 100% 67% 100%
mandelbrot  #6 0.45  4,000 3,604 1035 1.75 100% 100% 100% 100%
mandelbrot  #6 6.93  16,000 32,956 1035 27.62 100% 100% 100% 100%
source secs N mem gz cpu cpu load
meteor-contest  #4 0.08  2,098 ? 5330 0.08 0% 100% 0% 0%
source secs N mem gz cpu cpu load
meteor-contest  #2 0.16  2,098 ? 4080 0.16 100% 0% 0% 12%
source secs N mem gz cpu cpu load
meteor-contest  0.14  2,098 ? 4343 0.14 0% 94% 7% 7%
source secs N mem gz cpu cpu load
meteor-contest  #5 0.09  2,098 ? 5051 0.08 100% 0% 0% 0%
source secs N mem gz cpu cpu load
meteor-contest  #3 0.08  2,098 ? 4862 0.08 0% 100% 0% 11%
source secs N mem gz cpu cpu load
meteor-contest  #6 0.01  2,098 ? 2620 0.04 100% 100% 67% 100%
source secs N mem gz cpu cpu load
n-body  #3 0.10  500,000 ? 1763 0.10 0% 9% 0% 100%
n-body  #3 0.94  5,000,000 1,636 1763 0.93 0% 0% 3% 100%
n-body  #3 9.30  50,000,000 1,712 1763 9.29 100% 1% 1% 0%
source secs N mem gz cpu cpu load
n-body  0.20  500,000 ? 1659 0.20 100% 5% 0% 0%
n-body  1.94  5,000,000 1,156 1659 1.94 2% 1% 1% 100%
n-body  19.37  50,000,000 1,056 1659 19.36 1% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.21  500,000 648 1428 0.20 5% 0% 0% 95%
n-body  #4 2.03  5,000,000 636 1428 2.02 1% 100% 0% 1%
n-body  #4 20.20  50,000,000 684 1428 20.19 0% 0% 1% 100%
source secs N mem gz cpu cpu load
n-body  #8 0.10  500,000 ? 1544 0.10 9% 0% 0% 100%
n-body  #8 0.94  5,000,000 908 1544 0.94 0% 0% 3% 100%
n-body  #8 9.37  50,000,000 1,152 1544 9.36 1% 0% 100% 1%
source secs N mem gz cpu cpu load
n-body  #6 0.20  500,000 ? 1668 0.20 0% 100% 5% 0%
n-body  #6 1.93  5,000,000 948 1668 1.92 100% 2% 2% 0%
n-body  #6 19.20  50,000,000 1,096 1668 19.19 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.12  500,000 ? 1749 0.12 0% 8% 0% 100%
n-body  #5 1.19  5,000,000 1,628 1749 1.18 100% 1% 0% 1%
n-body  #5 11.76  50,000,000 1,728 1749 11.75 1% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.10  500,000 ? 1545 0.10 9% 0% 0% 90%
n-body  #7 0.97  5,000,000 948 1545 0.97 1% 100% 2% 1%
n-body  #7 9.65  50,000,000 940 1545 9.64 100% 1% 1% 1%
source secs N mem gz cpu cpu load
pidigits  #4 0.07  2,000 ? 508 0.07 0% 13% 100% 0%
pidigits  #4 0.65  6,000 3,488 508 0.65 4% 2% 100% 1%
pidigits  #4 1.89  10,000 3,740 508 1.89 2% 99% 0% 2%
pidigits  #3 Timed Out  2,000
source secs N mem gz cpu cpu load
regex-redux  #2 0.08  50,000 ? 700 0.12 13% 0% 50% 89%
regex-redux  #2 0.69  500,000 28,684 700 1.00 60% 85% 3% 0%
regex-redux  #2 6.75  5,000,000 183,256 700 9.80 100% 39% 8% 0%
source secs N mem gz cpu cpu load
regex-redux  0.10  50,000 ? 656 0.10 0% 0% 0% 100%
regex-redux  0.98  500,000 28,108 656 0.98 100% 0% 1% 1%
regex-redux  9.79  5,000,000 202,324 656 9.78 1% 0% 0% 100%
source secs N mem gz cpu cpu load
regex-redux  #3 0.23  50,000 1,476 853 0.32 29% 39% 0% 91%
regex-redux  #3 1.81  500,000 34,412 853 2.84 58% 4% 100% 23%
regex-redux  #3 16.34  5,000,000 218,684 853 24.91 1% 71% 25% 58%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.07  250,000 ? 1752 ? 86% 13% 0% 0%
reverse-complement  #6 0.55  2,500,000 ? 1752 ? 87% 16% 9% 13%
reverse-complement  #6 1.45  25,000,000 424,332 1752 2.17 61% 21% 29% 41%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.08  250,000 ? 1082 ? 44% 13% 25% 63%
reverse-complement  #2 0.55  2,500,000 ? 1082 ? 91% 4% 4% 11%
reverse-complement  #2 0.78  25,000,000 246,768 1082 1.02 95% 13% 18% 6%
source secs N mem gz cpu cpu load
reverse-complement  #4 0.01  250,000 ? 2275 0.01 0% 100% 0% 50%
reverse-complement  #4 0.08  2,500,000 ? 2275 0.12 33% 13% 75% 75%
reverse-complement  #4 0.59  25,000,000 217,564 2275 0.84 26% 78% 12% 34%
source secs N mem gz cpu cpu load
reverse-complement  0.04  250,000 ? 571 0.04 0% 100% 20% 0%
reverse-complement  0.30  2,500,000 828 571 0.30 3% 6% 100% 3%
reverse-complement  2.55  25,000,000 247,792 571 2.54 0% 0% 2% 100%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.20  250,000 ? 646 0.20 10% 10% 5% 100%
reverse-complement  #5 1.93  2,500,000 17,176 646 1.92 1% 0% 0% 99%
reverse-complement  #5 18.74  25,000,000 130,120 646 18.73 1% 1% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.02  250,000 ? 810 0.02 100% 0% 0% 0%
reverse-complement  #3 0.16  2,500,000 ? 810 0.15 0% 100% 0% 0%
reverse-complement  #3 1.15  25,000,000 127,108 810 1.14 2% 2% 99% 2%
source secs N mem gz cpu cpu load
spectral-norm  0.14  500 ? 452 0.14 7% 100% 0% 0%
spectral-norm  4.79  3,000 1,664 452 4.78 100% 0% 0% 1%
spectral-norm  15.92  5,500 1,728 452 15.92 1% 100% 1% 1%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.02  500 ? 1044 0.07 100% 100% 100% 100%
spectral-norm  #6 0.61  3,000 1,764 1044 2.37 98% 98% 97% 98%
spectral-norm  #6 2.01  5,500 1,792 1044 8.00 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.03  500 ? 1044 0.09 100% 100% 100% 100%
spectral-norm  #5 0.61  3,000 1,784 1044 2.38 98% 97% 98% 98%
spectral-norm  #5 2.01  5,500 3,832 1044 8.00 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.02  500 ? 1278 0.07 67% 100% 100% 100%
spectral-norm  #8 0.66  3,000 1,696 1278 2.54 99% 98% 97% 98%
spectral-norm  #8 2.13  5,500 1,844 1278 8.44 100% 99% 100% 99%
source secs N mem gz cpu cpu load
thread-ring  #5 1.89  500,000 11,088 652 3.81 60% 42% 42% 60%
thread-ring  #5 14.33  5,000,000 10,824 652 29.41 46% 57% 58% 45%
thread-ring  #5 137.18  50,000,000 11,088 652 282.68 52% 51% 51% 52%
source secs N mem gz cpu cpu load
thread-ring  #2 1.73  500,000 7,432 588 2.26 55% 6% 5% 54%
thread-ring  #2 17.59  5,000,000 7,440 588 23.00 39% 19% 19% 39%
thread-ring  #2 171.18  50,000,000 7,376 588 224.18 14% 44% 44% 15%
source secs N mem gz cpu cpu load
thread-ring  2.00  500,000 7,088 636 2.86 29% 37% 37% 28%
thread-ring  18.72  5,000,000 6,928 636 26.93 21% 43% 43% 22%
thread-ring  183.75  50,000,000 7,032 636 263.57 32% 32% 32% 32%
source secs N mem gz cpu cpu load
thread-ring  #4 1.87  500,000 10,900 572 3.84 53% 49% 51% 53%
thread-ring  #4 166.19  5,000,000 10,900 572 558.42 85% 85% 85% 85%
thread-ring  #4 137.73  50,000,000 11,052 572 283.55 51% 53% 53% 50%