The Computer Language
Benchmarks Game

all C++ g++ programs & measurements

g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0

source secs N mem gz cpu cpu load
binary-trees  #3  7 ? 945 0.00
binary-trees  #3 0.02  14 ? 945 0.04 50% 50% 100% 50%
binary-trees  #3 4.54  21 231,608 945 11.89 56% 76% 94% 38%
source secs N mem gz cpu cpu load
binary-trees  #6  7 ? 844 0.00
binary-trees  #6 0.02  14 ? 844 0.05 100% 50% 100% 50%
binary-trees  #6 4.41  21 226,000 844 11.00 37% 70% 90% 55%
source secs N mem gz cpu cpu load
binary-trees   7 ? 754 0.01
binary-trees  0.04  14 ? 754 0.09 50% 75% 60% 75%
binary-trees  8.50  21 1,810,688 754 31.39 97% 92% 92% 92%
source secs N mem gz cpu cpu load
binary-trees  #9  7 ? 809 0.01
binary-trees  #9 0.03  14 ? 809 0.06 100% 67% 50% 67%
binary-trees  #9 2.55  21 135,568 809 7.99 85% 96% 69% 66%
source secs N mem gz cpu cpu load
binary-trees  #8  7 ? 820 0.00
binary-trees  #8 0.02  14 ? 820 0.05 100% 0% 67% 100%
binary-trees  #8 5.19  21 221,456 820 13.56 71% 98% 55% 40%
source secs N mem gz cpu cpu load
binary-trees  #2  7 ? 508 0.00
binary-trees  #2 0.17  14 ? 508 0.17 0% 6% 100% 6%
binary-trees  #2 36.21  21 265,092 508 36.19 100% 1% 1% 0%
source secs N mem gz cpu cpu load
chameneos-redux  #5 0.03  60,000 ? 1994 0.05 100% 100% 33% 0%
chameneos-redux  #5 0.24  600,000 700 1994 0.46 96% 100% 25% 28%
chameneos-redux  #5 0.69  6,000,000 3,584 1994 2.71 100% 100% 99% 99%
source secs N mem gz cpu cpu load
chameneos-redux  0.05  60,000 ? 2454 0.17 60% 80% 80% 100%
chameneos-redux  0.51  600,000 3,772 2454 1.86 94% 96% 90% 88%
chameneos-redux  4.84  6,000,000 4,072 2454 18.35 97% 97% 94% 93%
source secs N mem gz cpu cpu load
chameneos-redux  #2 0.04  60,000 ? 2020 0.13 100% 83% 67% 100%
chameneos-redux  #2 0.37  600,000 720 2020 1.26 97% 53% 100% 100%
chameneos-redux  #2 3.67  6,000,000 2,048 2020 12.91 100% 100% 100% 55%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.07  10 ? 980 0.28 100% 88% 100% 88%
fannkuch-redux  #5 0.85  11 2,008 980 3.21 95% 95% 93% 100%
fannkuch-redux  #5 10.61  12 2,044 980 41.90 100% 96% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.18  10 ? 1150 0.17 16% 6% 100% 67%
fannkuch-redux  #7 2.00  11 780 1150 2.00 2% 0% 4% 100%
fannkuch-redux  #7 25.36  12 852 1150 25.35 0% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.42  10 892 593 0.42 0% 2% 5% 100%
fannkuch-redux  #3 5.09  11 812 593 5.08 0% 0% 2% 100%
fannkuch-redux  #3 68.24  12 900 593 68.23 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.09  10 ? 1059 0.33 100% 89% 100% 90%
fannkuch-redux  1.16  11 1,932 1059 4.13 92% 92% 98% 86%
fannkuch-redux  14.25  12 2,020 1059 55.84 99% 95% 99% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.09  10 ? 1440 0.30 78% 80% 89% 78%
fannkuch-redux  #2 0.96  11 2,056 1440 3.68 94% 97% 100% 97%
fannkuch-redux  #2 13.02  12 2,252 1440 50.96 100% 100% 99% 94%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.09  10 ? 1439 0.29 89% 89% 78% 75%
fannkuch-redux  #4 0.97  11 2,132 1439 3.67 99% 96% 91% 96%
fannkuch-redux  #4 12.99  12 2,176 1439 50.85 99% 100% 100% 94%
source secs N mem gz cpu cpu load
fasta  #4 0.07  250,000 ? 1287 0.07 0% 0% 33% 100%
fasta  #4 0.65  2,500,000 848 1287 0.65 7% 13% 98% 0%
fasta  #4 6.06  25,000,000 896 1287 6.06 0% 0% 1% 100%
source secs N mem gz cpu cpu load
fasta  0.08  250,000 ? 1057 0.08 0% 0% 100% 0%
fasta  0.76  2,500,000 1,824 1057 0.76 8% 100% 3% 0%
fasta  7.19  25,000,000 1,824 1057 7.18 1% 100% 1% 1%
source secs N mem gz cpu cpu load
fasta  #6 0.03  250,000 ? 2324 0.08 50% 0% 100% 67%
fasta  #6 0.19  2,500,000 ? 2324 0.59 83% 78% 82% 89%
fasta  #6 1.49  25,000,000 4,372 2324 5.28 89% 88% 90% 90%
source secs N mem gz cpu cpu load
fasta  #5 0.02  250,000 ? 2344 0.06 50% 50% 100% 50%
fasta  #5 0.18  2,500,000 ? 2344 0.59 89% 84% 79% 84%
fasta  #5 1.52  25,000,000 4,352 2344 5.32 89% 89% 86% 89%
source secs N mem gz cpu cpu load
fasta  #2 0.06  250,000 ? 1127 0.06 0% 100% 0% 0%
fasta  #2 0.55  2,500,000 1,636 1127 0.55 2% 2% 9% 100%
fasta  #2 5.10  25,000,000 1,860 1127 5.10 25% 77% 1% 0%
source secs N mem gz cpu cpu load
fasta  #7 0.04  250,000 ? 2711 0.05 100% 33% 40% 33%
fasta  #7 0.15  2,500,000 ? 2711 0.46 80% 80% 79% 75%
fasta  #7 1.35  25,000,000 1,952 2711 4.18 79% 78% 78% 79%
source secs N mem gz cpu cpu load
fasta  #3 0.05  250,000 ? 1307 0.05 100% 43% 25% 0%
fasta  #3 0.47  2,500,000 1,772 1307 0.46 0% 2% 9% 100%
fasta  #3 4.18  25,000,000 1,888 1307 4.18 1% 1% 1% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.41  250,000 740 1276 0.73 30% 38% 93% 28%
k-nucleotide  #3 1.33  2,500,000 55,060 1276 2.92 57% 50% 57% 78%
k-nucleotide  #3 7.75  25,000,000 165,180 1276 26.02 80% 96% 82% 79%
source secs N mem gz cpu cpu load
k-nucleotide  0.25  250,000 820 1446 0.40 38% 72% 8% 73%
k-nucleotide  1.57  2,500,000 60,652 1446 2.59 38% 73% 71% 7%
k-nucleotide  11.52  25,000,000 756,276 1446 24.11 88% 13% 21% 90%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.04  1,000 ? 1035 0.13 100% 80% 100% 100%
mandelbrot  #4 0.58  4,000 3,592 1035 1.90 98% 98% 100% 100%
mandelbrot  #4 7.13  16,000 33,068 1035 28.40 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  0.01  1,000 ? 1791 0.04 0% 100% 50% 100%
mandelbrot  0.11  4,000 ? 1791 0.40 91% 100% 100% 91%
mandelbrot  1.51  16,000 25,704 1791 5.99 99% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.10  1,000 ? 590 0.10 0% 100% 0% 0%
mandelbrot  #5 1.51  4,000 4,244 590 1.51 1% 99% 3% 0%
mandelbrot  #5 23.84  16,000 33,544 590 23.83 0% 0% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.34  1,000 608 414 0.34 57% 100% 0% 12%
mandelbrot  #3 5.31  4,000 1,728 414 5.30 3% 3% 100% 1%
mandelbrot  #3 83.91  16,000 1,904 414 83.88 1% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.03  1,000 ? 1017 0.10 100% 67% 100% 100%
mandelbrot  #7 0.40  4,000 832 1017 1.54 100% 98% 100% 97%
mandelbrot  #7 6.09  16,000 34,264 1017 24.24 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.12  1,000 ? 692 0.12 36% 18% 0% 100%
mandelbrot  #2 1.85  4,000 4,648 692 1.85 6% 11% 100% 2%
mandelbrot  #2 29.02  16,000 34,084 692 29.01 4% 5% 3% 100%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.04  1,000 ? 726 0.10 50% 100% 100% 80%
mandelbrot  #9 0.58  4,000 4,864 726 1.35 71% 98% 61% 68%
mandelbrot  #9 5.18  16,000 34,380 726 19.95 99% 95% 95% 96%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.04  1,000 ? 742 0.10 75% 80% 100% 50%
mandelbrot  #8 0.62  4,000 4,840 742 1.41 47% 49% 97% 81%
mandelbrot  #8 8.00  16,000 34,384 742 21.72 96% 41% 37% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6  1,000 ? 1002 0.03
mandelbrot  #6 0.12  4,000 ? 1002 0.43 91% 100% 92% 100%
mandelbrot  #6 1.64  16,000 27,636 1002 6.51 100% 99% 100% 99%
source secs N mem gz cpu cpu load
meteor-contest  #2 0.16  2,098 ? 4093 0.16 12% 100% 7% 0%
source secs N mem gz cpu cpu load
meteor-contest  #6  2,098 ? 2620 0.05
source secs N mem gz cpu cpu load
meteor-contest  #5 0.08  2,098 ? 5058 0.08 0% 0% 0% 100%
source secs N mem gz cpu cpu load
meteor-contest  0.14  2,098 ? 4348 0.14 100% 7% 14% 8%
source secs N mem gz cpu cpu load
meteor-contest  #4 0.07  2,098 ? 5336 0.07 14% 100% 0% 14%
source secs N mem gz cpu cpu load
meteor-contest  #3 0.08  2,098 ? 4871 0.08 89% 38% 0% 11%
source secs N mem gz cpu cpu load
n-body  0.22  500,000 1,064 1659 0.20 24% 37% 95% 5%
n-body  1.97  5,000,000 1,088 1659 1.97 11% 8% 100% 2%
n-body  19.64  50,000,000 1,144 1659 19.64 1% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.14  500,000 ? 1749 0.13 29% 71% 0% 7%
n-body  #5 1.25  5,000,000 1,768 1749 1.25 1% 2% 12% 100%
n-body  #5 12.42  50,000,000 1,800 1749 12.42 0% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #6 0.21  500,000 1,084 1668 0.21 95% 0% 0% 5%
n-body  #6 2.11  5,000,000 1,092 1668 2.11 1% 1% 100% 2%
n-body  #6 20.49  50,000,000 1,164 1668 20.48 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.10  500,000 ? 1545 0.10 0% 0% 100% 0%
n-body  #7 0.96  5,000,000 1,024 1545 0.96 4% 8% 100% 2%
n-body  #7 9.50  50,000,000 1,112 1545 9.49 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #3 0.09  500,000 ? 1763 0.09 0% 0% 0% 100%
n-body  #3 0.83  5,000,000 1,788 1763 0.83 6% 5% 1% 100%
n-body  #3 8.23  50,000,000 1,856 1763 8.23 100% 1% 1% 0%
source secs N mem gz cpu cpu load
n-body  #8 0.09  500,000 ? 1544 0.09 100% 0% 9% 0%
n-body  #8 0.91  5,000,000 1,124 1544 0.91 2% 7% 100% 4%
n-body  #8 9.02  50,000,000 1,128 1544 9.01 2% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.21  500,000 896 1428 0.21 9% 9% 30% 95%
n-body  #4 2.03  5,000,000 808 1428 2.03 12% 11% 0% 100%
n-body  #4 20.28  50,000,000 896 1428 20.27 100% 1% 0% 0%
source secs N mem gz cpu cpu load
pidigits  #4 0.07  2,000 ? 513 0.07 0% 0% 86% 13%
pidigits  #4 0.65  6,000 3,508 513 0.65 0% 0% 100% 0%
pidigits  #4 1.88  10,000 4,276 513 1.88 0% 100% 1% 0%
pidigits  #3 Timed Out  2,000
source secs N mem gz cpu cpu load
regex-redux  0.09  50,000 ? 656 0.09 89% 0% 0% 0%
regex-redux  0.84  500,000 23,560 656 0.84 0% 0% 4% 99%
regex-redux  8.44  5,000,000 182,500 656 8.44 1% 100% 0% 0%
source secs N mem gz cpu cpu load
regex-redux  #2 0.06  50,000 ? 700 0.10 0% 14% 71% 83%
regex-redux  #2 0.58  500,000 26,784 700 0.86 85% 65% 0% 3%
regex-redux  #2 5.75  5,000,000 201,072 700 8.50 1% 84% 1% 63%
source secs N mem gz cpu cpu load
regex-redux  #4 0.02  50,000 ? 1315 0.06 100% 50% 67% 100%
regex-redux  #4 0.17  500,000 ? 1315 0.44 63% 56% 71% 82%
regex-redux  #4 1.61  5,000,000 203,572 1315 4.18 100% 52% 57% 54%
source secs N mem gz cpu cpu load
regex-redux  #5 0.17  50,000 ? 852 0.11 35% 56% 12% 24%
regex-redux  #5 0.81  500,000 26,700 852 0.92 11% 74% 38% 10%
regex-redux  #5 6.64  5,000,000 215,380 852 9.03 88% 24% 13% 12%
source secs N mem gz cpu cpu load
regex-redux  #3 0.19  50,000 ? 853 0.27 6% 5% 47% 95%
regex-redux  #3 1.86  500,000 32,976 853 2.81 100% 3% 52% 1%
regex-redux  #3 17.33  5,000,000 215,384 853 25.78 13% 94% 43% 1%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.24  250,000 ? 720 0.12 0% 75% 27% 17%
reverse-complement  #5 42.75  100,000,000 747,244 720 42.74 70% 1% 0% 30%
source secs N mem gz cpu cpu load
reverse-complement  #2  250,000 ? 1087 0.02
reverse-complement  #2 4.88  100,000,000 979,076 1087 4.87 1% 0% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.02  250,000 ? 840 0.02 0% 0% 0% 100%
reverse-complement  #3 4.48  100,000,000 500,056 840 4.47 0% 1% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #4 0.03  250,000 ? 2280 0.04 100% 25% 33% 75%
reverse-complement  #4 3.08  100,000,000 980,604 2280 4.66 62% 25% 12% 54%
source secs N mem gz cpu cpu load
reverse-complement  0.04  250,000 ? 592 0.04 0% 80% 20% 0%
reverse-complement  11.26  100,000,000 979,844 592 11.24 0% 3% 98% 0%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.09  250,000 ? 1832 ? 11% 89% 22% 0%
reverse-complement  #6 6.37  100,000,000 1,506,760 1832 8.80 85% 31% 2% 22%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.06  500 ? 1044 0.18 83% 83% 100% 83%
spectral-norm  #6 0.81  3,000 1,196 1044 2.45 85% 93% 88% 86%
spectral-norm  #6 2.02  5,500 1,332 1044 7.91 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.09  500 ? 1278 0.24 88% 86% 80% 80%
spectral-norm  #8 1.39  3,000 1,324 1278 4.32 92% 92% 88% 86%
spectral-norm  #8 3.54  5,500 1,308 1278 13.98 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.09  500 ? 1044 0.23 89% 78% 78% 80%
spectral-norm  #5 0.76  3,000 1,928 1044 2.47 88% 89% 91% 91%
spectral-norm  #5 2.02  5,500 1,980 1044 7.97 99% 99% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  #2 0.02  500 ? 453 0.02 0% 0% 0% 100%
spectral-norm  #2 0.76  3,000 72,524 453 0.75 100% 4% 1% 3%
spectral-norm  #2 2.48  5,500 238,984 453 2.47 100% 2% 1% 0%
source secs N mem gz cpu cpu load
spectral-norm  0.14  500 ? 452 0.14 100% 69% 7% 7%
spectral-norm  4.86  3,000 3,064 452 4.85 1% 100% 1% 1%
spectral-norm  16.26  5,500 1,904 452 16.25 0% 1% 0% 100%
source secs N mem gz cpu cpu load
thread-ring  #2 1.75  500,000 7,452 588 2.29 60% 63% 10% 12%
thread-ring  #2 17.02  5,000,000 7,492 588 22.62 44% 42% 16% 17%
thread-ring  #2 164.08  50,000,000 7,400 588 217.26 35% 35% 23% 24%
source secs N mem gz cpu cpu load
thread-ring  #5 0.32  500,000 832 652 0.55 24% 24% 65% 64%
thread-ring  #5 4.10  5,000,000 7,168 652 7.10 42% 42% 44% 45%
thread-ring  #5 38.43  50,000,000 7,312 652 67.45 56% 55% 31% 31%
source secs N mem gz cpu cpu load
thread-ring  1.99  500,000 7,128 636 2.74 59% 59% 13% 15%
thread-ring  16.69  5,000,000 7,160 636 24.64 62% 63% 7% 8%
thread-ring  168.63  50,000,000 7,160 636 246.02 26% 26% 40% 40%
source secs N mem gz cpu cpu load
thread-ring  #4 0.40  500,000 808 572 0.70 10% 10% 83% 77%
thread-ring  #4 3.66  5,000,000 7,316 572 6.30 54% 54% 31% 31%
thread-ring  #4 29.87  50,000,000 7,184 572 49.48 47% 46% 39% 38%