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 0.02  12 ? 993 0.02 0% 0% 0% 100%
binary-trees  #3 0.49  16 6,032 993 0.49 4% 4% 0% 100%
binary-trees  #3 11.44  20 181,440 993 11.42 1% 1% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #6 0.02  12 ? 892 0.02 0% 0% 0% 100%
binary-trees  #6 0.50  16 5,988 892 0.50 2% 0% 0% 100%
binary-trees  #6 11.27  20 150,264 892 11.26 1% 1% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  0.04  12 ? 796 ? 25% 0% 0% 75%
binary-trees  0.71  16 48,780 796 0.64 1% 6% 1% 99%
binary-trees  12.58  20 1,624,236 796 12.54 1% 2% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #2 0.09  12 ? 553 0.09 0% 0% 0% 100%
binary-trees  #2 2.02  16 6,684 553 2.02 0% 2% 0% 100%
binary-trees  #2 42.74  20 101,016 553 42.71 1% 1% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #7 0.02  12 ? 846 0.01 0% 0% 0% 100%
binary-trees  #7 0.29  16 700 846 0.29 10% 4% 0% 100%
binary-trees  #7 6.86  20 76,616 846 6.85 0% 1% 0% 100%
source secs N mem gz cpu cpu load
chameneos-redux  #5 0.10  60,000 ? 1994 0.10 0% 9% 0% 100%
chameneos-redux  #5 0.94  600,000 1,340 1994 0.94 3% 4% 1% 99%
chameneos-redux  #5 9.24  6,000,000 3,348 1994 9.24 1% 1% 1% 100%
chameneos-redux  Make Error  60,000
source secs N mem gz cpu cpu load
chameneos-redux  #2 0.02  60,000 ? 2016 0.02 0% 0% 0% 67%
chameneos-redux  #2 0.15  600,000 ? 2016 0.15 0% 0% 0% 100%
chameneos-redux  #2 1.46  6,000,000 1,480 2016 1.45 1% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.36  10 624 1059 0.35 8% 6% 3% 100%
fannkuch-redux  4.40  11 1,284 1059 4.39 0% 2% 0% 100%
fannkuch-redux  59.74  12 1,496 1059 59.72 2% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.30  10 740 1439 0.29 6% 3% 0% 97%
fannkuch-redux  #4 3.76  11 1,508 1439 3.76 0% 1% 1% 100%
fannkuch-redux  #4 51.57  12 1,544 1439 51.55 1% 0% 1% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.34  10 552 593 0.34 0% 3% 0% 100%
fannkuch-redux  #3 4.21  11 564 593 4.20 1% 1% 0% 100%
fannkuch-redux  #3 56.20  12 568 593 56.18 1% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.16  10 ? 1150 0.16 0% 0% 0% 100%
fannkuch-redux  #7 1.99  11 564 1150 1.99 2% 1% 0% 100%
fannkuch-redux  #7 24.65  12 556 1150 24.64 1% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.30  10 688 1440 0.29 0% 0% 7% 100%
fannkuch-redux  #5 3.71  11 1,476 1440 3.70 2% 1% 1% 100%
fannkuch-redux  #5 51.15  12 1,544 1440 51.13 2% 1% 1% 100%
source secs N mem gz cpu cpu load
fasta  0.06  250,000 ? 1033 0.06 0% 0% 0% 100%
fasta  0.54  2,500,000 1,232 1033 0.54 0% 2% 2% 100%
fasta  5.01  25,000,000 1,224 1033 5.00 2% 1% 0% 100%
source secs N mem gz cpu cpu load
fasta  #3 0.05  250,000 ? 1286 0.05 0% 0% 17% 100%
fasta  #3 0.47  2,500,000 1,232 1286 0.46 2% 2% 2% 100%
fasta  #3 4.22  25,000,000 1,344 1286 4.22 1% 1% 0% 100%
source secs N mem gz cpu cpu load
fasta  #4 0.08  250,000 ? 1266 0.07 0% 0% 0% 100%
fasta  #4 0.69  2,500,000 532 1266 0.68 0% 4% 0% 100%
fasta  #4 6.48  25,000,000 556 1266 6.48 0% 1% 1% 100%
fasta  #5 Make Error  250,000
source secs N mem gz cpu cpu load
fasta  #2 0.05  250,000 ? 1105 0.05 0% 17% 0% 100%
fasta  #2 0.46  2,500,000 1,316 1105 0.46 9% 8% 2% 98%
fasta  #2 4.21  25,000,000 1,336 1105 4.20 1% 1% 0% 100%
source secs N mem gz cpu cpu load
fasta  #6 0.88  250,000 3,772 2291 0.88 4% 0% 1% 99%
fasta  #6 6.56  2,500,000 3,988 2291 6.55 0% 1% 0% 100%
fasta  #6 63.56  25,000,000 3,964 2291 63.54 1% 0% 1% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.58  250,000 9,460 1252 0.51 5% 0% 0% 100%
k-nucleotide  #3 3.01  2,500,000 24,472 1252 2.67 1% 2% 1% 100%
k-nucleotide  #3 24.04  25,000,000 137,908 1252 23.98 1% 1% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.09  1,000 ? 742 0.09 11% 89% 0% 100%
mandelbrot  #8 1.37  4,000 4,060 742 1.36 12% 2% 1% 100%
mandelbrot  #8 21.36  16,000 33,664 742 21.35 1% 1% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.10  1,000 ? 590 0.10 0% 0% 0% 100%
mandelbrot  #5 1.46  4,000 3,908 590 1.46 2% 1% 1% 99%
mandelbrot  #5 23.01  16,000 33,400 590 23.00 1% 1% 1% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.67  1,000 1,328 414 0.67 0% 4% 0% 100%
mandelbrot  #3 13.99  4,000 1,292 414 13.99 1% 1% 0% 100%
mandelbrot  #3 169.70  16,000 1,348 414 169.64 1% 1% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.10  1,000 ? 1017 0.09 0% 0% 0% 100%
mandelbrot  #7 1.45  4,000 4,252 1017 1.45 1% 1% 0% 100%
mandelbrot  #7 22.96  16,000 33,916 1017 22.95 1% 1% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.13  1,000 ? 687 0.13 0% 0% 0% 93%
mandelbrot  #2 1.96  4,000 4,416 687 1.95 0% 1% 2% 100%
mandelbrot  #2 30.90  16,000 33,856 687 30.88 1% 1% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.09  1,000 ? 726 0.09 0% 0% 10% 100%
mandelbrot  #9 1.28  4,000 4,132 726 1.28 0% 3% 0% 100%
mandelbrot  #9 20.11  16,000 33,768 726 20.10 0% 1% 1% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.11  1,000 ? 1035 0.11 0% 0% 0% 100%
mandelbrot  #6 1.74  4,000 3,400 1035 1.74 0% 2% 2% 100%
mandelbrot  #6 27.62  16,000 32,920 1035 27.61 0% 2% 0% 100%
source secs N mem gz cpu cpu load
meteor-contest  #6 0.05  2,098 ? 2620 0.04 0% 33% 0% 100%
source secs N mem gz cpu cpu load
meteor-contest  0.12  2,098 ? 4343 0.12 8% 8% 0% 100%
source secs N mem gz cpu cpu load
meteor-contest  #4 0.08  2,098 ? 5330 0.08 0% 0% 0% 100%
source secs N mem gz cpu cpu load
meteor-contest  #3 0.09  2,098 ? 4862 0.09 0% 0% 0% 89%
source secs N mem gz cpu cpu load
meteor-contest  #2 0.25  2,098 692 4080 0.25 0% 0% 4% 100%
source secs N mem gz cpu cpu load
meteor-contest  #5 0.09  2,098 ? 5051 0.08 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  0.21  500,000 796 1659 0.21 0% 0% 5% 95%
n-body  2.06  5,000,000 764 1659 2.06 0% 2% 0% 100%
n-body  20.54  50,000,000 824 1659 20.53 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #3 0.23  500,000 756 1763 0.23 0% 9% 0% 100%
n-body  #3 2.64  5,000,000 1,320 1763 2.64 0% 2% 0% 100%
n-body  #3 15.36  50,000,000 1,360 1763 15.36 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #8 0.09  500,000 ? 1544 0.09 0% 0% 0% 100%
n-body  #8 0.91  5,000,000 792 1544 0.90 3% 0% 1% 100%
n-body  #8 9.03  50,000,000 816 1544 9.02 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #4 0.22  500,000 524 1428 0.20 0% 5% 0% 92%
n-body  #4 2.06  5,000,000 528 1428 2.05 1% 1% 0% 100%
n-body  #4 20.47  50,000,000 548 1428 20.46 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #5 0.12  500,000 ? 1749 0.12 0% 0% 8% 100%
n-body  #5 1.16  5,000,000 1,320 1749 1.15 3% 2% 0% 100%
n-body  #5 11.50  50,000,000 1,408 1749 11.49 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #6 0.22  500,000 820 1668 0.21 5% 0% 0% 100%
n-body  #6 2.08  5,000,000 820 1668 2.08 1% 1% 1% 100%
n-body  #6 20.71  50,000,000 824 1668 20.70 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #7 0.10  500,000 ? 1545 0.10 0% 0% 0% 100%
n-body  #7 0.90  5,000,000 760 1545 0.90 3% 1% 0% 100%
n-body  #7 8.96  50,000,000 816 1545 8.95 1% 1% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.09  2,000 ? 508 0.09 0% 0% 10% 100%
pidigits  #4 0.79  6,000 3,124 508 0.78 0% 3% 0% 100%
pidigits  #4 2.27  10,000 3,440 508 2.27 0% 1% 1% 100%
pidigits  #3 Timed Out  2,000
source secs N mem gz cpu cpu load
regex-dna  #3 0.32  50,000 740 844 0.31 0% 3% 0% 100%
regex-dna  #3 3.10  500,000 25,180 844 3.09 2% 1% 0% 100%
regex-dna  #3 30.75  5,000,000 222,544 844 30.74 1% 1% 0% 100%
source secs N mem gz cpu cpu load
regex-dna  0.07  50,000 ? 648 0.07 0% 0% 13% 89%
regex-dna  0.74  500,000 14,816 648 0.73 0% 0% 1% 100%
regex-dna  7.07  5,000,000 183,784 648 7.06 6% 1% 0% 100%
source secs N mem gz cpu cpu load
regex-dna  #4 0.15  50,000 ? 1759 0.15 0% 0% 0% 100%
regex-dna  #4 1.45  500,000 8,192 1759 1.44 0% 1% 1% 100%
regex-dna  #4 14.40  5,000,000 95,448 1759 14.39 1% 1% 0% 100%
source secs N mem gz cpu cpu load
regex-dna  #2 0.07  50,000 ? 695 0.07 0% 0% 0% 100%
regex-dna  #2 0.74  500,000 13,816 695 0.74 4% 3% 3% 100%
regex-dna  #2 7.08  5,000,000 212,864 695 7.07 1% 1% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  0.05  250,000 ? 571 0.04 17% 0% 0% 100%
reverse-complement  0.57  2,500,000 17,520 571 0.56 0% 0% 4% 100%
reverse-complement  3.64  25,000,000 247,080 571 3.63 1% 0% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.02  250,000 ? 1082 0.02 0% 0% 0% 100%
reverse-complement  #2 0.16  2,500,000 ? 1082 0.15 6% 0% 6% 100%
reverse-complement  #2 1.18  25,000,000 247,296 1082 1.17 2% 0% 3% 100%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.06  250,000 ? 1752 0.03 14% 0% 0% 100%
reverse-complement  #6 0.54  2,500,000 18,480 1752 0.31 0% 5% 0% 100%
reverse-complement  #6 2.43  25,000,000 349,164 1752 2.42 1% 2% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  #4 0.02  250,000 ? 2275 0.02 0% 0% 25% 100%
reverse-complement  #4 0.14  2,500,000 ? 2275 0.13 7% 0% 0% 100%
reverse-complement  #4 1.02  25,000,000 247,604 2275 1.01 2% 0% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.05  250,000 ? 810 ? 0% 17% 20% 100%
reverse-complement  #3 0.46  2,500,000 ? 810 ? 4% 2% 0% 100%
reverse-complement  #3 1.41  25,000,000 126,796 810 1.40 1% 1% 3% 99%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.27  250,000 608 646 0.26 0% 4% 0% 100%
reverse-complement  #5 2.56  2,500,000 16,464 646 2.56 0% 2% 1% 100%
reverse-complement  #5 25.35  25,000,000 182,488 646 25.34 1% 0% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.08  500 ? 1044 0.07 0% 0% 11% 100%
spectral-norm  #6 2.36  3,000 2,176 1044 2.36 0% 0% 0% 100%
spectral-norm  #6 7.93  5,500 2,288 1044 7.92 1% 1% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.08  500 ? 1044 0.07 0% 0% 0% 100%
spectral-norm  #5 2.37  3,000 2,140 1044 2.36 1% 1% 1% 100%
spectral-norm  #5 7.93  5,500 2,288 1044 7.92 1% 1% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.12  500 ? 1278 0.11 0% 0% 0% 100%
spectral-norm  #8 3.97  3,000 1,600 1278 3.97 2% 1% 1% 100%
spectral-norm  #8 13.18  5,500 1,712 1278 13.17 1% 1% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.25  500 612 452 0.24 4% 4% 0% 100%
spectral-norm  8.63  3,000 1,412 452 8.62 1% 1% 0% 100%
spectral-norm  28.97  5,500 1,348 452 28.96 1% 1% 0% 100%
source secs N mem gz cpu cpu load
thread-ring  #2 1.30  500,000 8,396 588 1.30 2% 0% 1% 100%
thread-ring  #2 12.88  5,000,000 8,308 588 12.86 0% 1% 1% 100%
thread-ring  #2 128.40  50,000,000 8,304 588 128.34 1% 1% 0% 100%
source secs N mem gz cpu cpu load
thread-ring  1.72  500,000 4,600 636 1.72 1% 1% 1% 99%
thread-ring  17.29  5,000,000 4,780 636 17.28 1% 1% 1% 100%
thread-ring  174.30  50,000,000 4,788 636 174.20 0% 1% 1% 100%
source secs N mem gz cpu cpu load
thread-ring  #4 0.14  500,000 ? 572 0.14 0% 0% 0% 100%
thread-ring  #4 1.23  5,000,000 4,456 572 1.22 0% 1% 1% 100%
thread-ring  #4 12.38  50,000,000 4,668 572 12.37 1% 1% 1% 100%
source secs N mem gz cpu cpu load
thread-ring  #5 0.14  500,000 ? 652 0.13 0% 0% 0% 100%
thread-ring  #5 1.16  5,000,000 4,564 652 1.16 0% 2% 1% 100%
thread-ring  #5 11.47  50,000,000 4,660 652 11.46 1% 1% 1% 100%