The Computer Language
Benchmarks Game

all C++ g++ programs & measurements

g++ (Ubuntu 10.3.0-1ubuntu1) 10.3.0

source secs N mem gz cpu cpu load
binary-trees  #5 0.16  7 8 885 0.01 47% 13% 6% 29%
binary-trees  #5 0.01  14 0 885 0.03 100% 100% 50% 0%
binary-trees  #5 1.14  21 200,396 885 4.08 100% 89% 87% 89%
source secs N mem gz cpu cpu load
binary-trees  #6 0.23  7 8 844 0.02 0% 71% 4% 23%
binary-trees  #6 0.01  14 0 844 0.03 50% 100% 100% 50%
binary-trees  #6 1.84  21 265,756 844 4.52 49% 40% 88% 70%
source secs N mem gz cpu cpu load
binary-trees  #4 0.15  7 8 1270 0.01 20% 7% 47% 6%
binary-trees  #4  14 0 1270 0.02
binary-trees  #4 1.25  21 134,416 1270 3.59 74% 61% 69% 88%
source secs N mem gz cpu cpu load
binary-trees  #3 0.17  7 8 945 0.01 0% 25% 44% 22%
binary-trees  #3 0.01  14 0 945 0.03 0% 50% 50% 100%
binary-trees  #3 1.83  21 265,396 945 4.53 40% 58% 88% 64%
source secs N mem gz cpu cpu load
binary-trees  #2 0.18  7 8 508 0.01 0% 17% 65% 0%
binary-trees  #2 0.12  14 5,028 508 0.12 0% 15% 17% 100%
binary-trees  #2 22.47  21 265,172 508 22.47 0% 0% 100% 1%
source secs N mem gz cpu cpu load
binary-trees  0.19  7 8 754 0.01 11% 60% 5% 6%
binary-trees  0.02  14 0 754 0.03 0% 100% 0% 100%
binary-trees  2.60  21 1,954,096 754 8.91 87% 83% 92% 84%
source secs N mem gz cpu cpu load
binary-trees  #8 0.19  7 8 820 0.02 11% 32% 32% 75%
binary-trees  #8  14 0 820 0.03
binary-trees  #8 2.10  21 265,768 820 5.10 44% 48% 88% 66%
source secs N mem gz cpu cpu load
binary-trees  #9 0.17  7 8 809 0.01 6% 6% 47% 31%
binary-trees  #9 0.02  14 0 809 0.04 0% 100% 0% 100%
binary-trees  #9 1.51  21 125,080 809 4.19 100% 69% 56% 54%
source secs N mem gz cpu cpu load
binary-trees  #7 0.19  7 316 1122 0.01 11% 5% 60% 16%
binary-trees  #7  14 0 1122 0.03
binary-trees  #7 0.94  21 176,428 1122 3.33 86% 88% 100% 85%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.29  10 1,824 980 0.23 30% 41% 21% 86%
fannkuch-redux  #5 0.61  11 1,824 980 2.40 95% 98% 100% 100%
fannkuch-redux  #5 8.11  12 1,888 980 31.59 93% 99% 99% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.31  10 1,760 1059 0.29 32% 23% 45% 77%
fannkuch-redux  0.83  11 1,696 1059 3.23 99% 94% 99% 98%
fannkuch-redux  10.87  12 1,956 1059 42.82 100% 95% 100% 99%
source secs N mem gz cpu cpu load
fannkuch-redux  #6 0.23  10 668 1528 0.12 27% 13% 17% 78%
fannkuch-redux  #6 0.26  11 1,888 1528 1.02 100% 96% 92% 96%
fannkuch-redux  #6 3.29  12 1,892 1528 13.04 100% 100% 100% 97%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.26  10 764 1150 0.13 19% 0% 8% 76%
fannkuch-redux  #7 1.12  11 700 1150 1.11 100% 1% 1% 10%
fannkuch-redux  #7 14.38  12 764 1150 14.38 0% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.25  10 1,824 1439 0.26 67% 29% 40% 32%
fannkuch-redux  #4 0.77  11 1,888 1439 2.97 99% 99% 99% 96%
fannkuch-redux  #4 10.04  12 2,020 1439 39.44 100% 100% 99% 95%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.43  10 692 593 0.29 9% 2% 80% 14%
fannkuch-redux  #3 3.07  11 768 593 3.07 100% 0% 0% 1%
fannkuch-redux  #3 40.57  12 768 593 40.57 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.24  10 1,892 1440 0.26 42% 29% 56% 35%
fannkuch-redux  #2 0.78  11 1,948 1440 2.95 96% 96% 94% 100%
fannkuch-redux  #2 9.93  12 2,016 1440 38.86 100% 94% 100% 98%
source secs N mem gz cpu cpu load
fasta  #6 0.18  250,000 348 2324 0.07 53% 28% 11% 35%
fasta  #6 0.12  2,500,000 4,440 2324 0.45 92% 92% 92% 100%
fasta  #6 1.05  25,000,000 4,596 2324 4.05 96% 96% 97% 97%
source secs N mem gz cpu cpu load
fasta  #4 0.19  250,000 768 1287 0.07 6% 6% 21% 74%
fasta  #4 0.37  2,500,000 768 1287 0.37 0% 0% 3% 100%
fasta  #4 3.38  25,000,000 764 1287 3.38 0% 1% 0% 100%
source secs N mem gz cpu cpu load
fasta  0.25  250,000 312 1057 0.05 21% 16% 46% 0%
fasta  0.24  2,500,000 1,716 1057 0.24 0% 0% 96% 0%
fasta  2.12  25,000,000 1,784 1057 2.12 100% 0% 0% 0%
source secs N mem gz cpu cpu load
fasta  #2 0.23  250,000 1,780 1127 0.05 13% 71% 0% 4%
fasta  #2 0.24  2,500,000 1,716 1127 0.24 4% 100% 0% 0%
fasta  #2 2.11  25,000,000 1,784 1127 2.11 100% 0% 0% 0%
source secs N mem gz cpu cpu load
fasta  #5 0.21  250,000 8 2344 0.07 38% 14% 43% 25%
fasta  #5 0.12  2,500,000 4,516 2344 0.42 90% 90% 91% 85%
fasta  #5 1.04  25,000,000 4,548 2344 3.87 93% 93% 93% 93%
source secs N mem gz cpu cpu load
fasta  #3 0.18  250,000 1,772 1307 0.06 0% 11% 17% 79%
fasta  #3 0.30  2,500,000 1,780 1307 0.30 0% 0% 0% 100%
fasta  #3 2.63  25,000,000 1,784 1307 2.63 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #8 0.21  250,000 8 2751 0.03 25% 29% 35% 15%
fasta  #8 0.09  2,500,000 2,440 2751 0.17 89% 11% 89% 0%
fasta  #8 0.77  25,000,000 2,504 2751 1.52 64% 0% 99% 37%
fasta  #7 Make Error  250,000
source secs N mem gz cpu cpu load
k-nucleotide  0.33  250,000 28,288 1446 0.26 32% 32% 44% 9%
k-nucleotide  0.96  2,500,000 97,104 1446 1.60 8% 69% 19% 74%
k-nucleotide  6.97  25,000,000 756,408 1446 14.89 14% 94% 93% 20%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.38  250,000 31,212 1276 0.39 41% 42% 29% 32%
k-nucleotide  #3 0.75  2,500,000 55,264 1276 1.69 49% 63% 49% 86%
k-nucleotide  #3 4.16  25,000,000 165,896 1276 13.74 95% 81% 78% 78%
source secs N mem gz cpu cpu load
k-nucleotide  #2 0.35  250,000 34,528 1631 0.26 28% 37% 29% 14%
k-nucleotide  #2 0.55  2,500,000 43,680 1631 0.81 30% 45% 52% 30%
k-nucleotide  #2 1.93  25,000,000 156,548 1631 5.83 69% 93% 69% 75%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.18  1,000 652 742 0.09 17% 56% 33% 12%
mandelbrot  #8 0.31  4,000 5,148 742 0.86 100% 42% 37% 97%
mandelbrot  #8 4.81  16,000 34,424 742 13.19 39% 100% 38% 100%
source secs N mem gz cpu cpu load
mandelbrot  0.20  1,000 8 1791 0.04 14% 21% 60% 50%
mandelbrot  0.06  4,000 776 1791 0.23 100% 100% 86% 86%
mandelbrot  0.89  16,000 32,592 1791 3.47 97% 98% 97% 99%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.31  1,000 1,784 414 0.15 10% 0% 10% 86%
mandelbrot  #3 1.81  4,000 1,784 414 1.81 0% 100% 0% 8%
mandelbrot  #3 28.60  16,000 1,784 414 28.60 1% 0% 100% 0%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.16  1,000 8 3542 0.02 6% 50% 39% 6%
mandelbrot  #4 0.06  4,000 676 3542 0.21 86% 100% 86% 71%
mandelbrot  #4 0.84  16,000 34,780 3542 3.26 99% 98% 98% 96%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.25  1,000 1,776 590 0.10 0% 12% 60% 20%
mandelbrot  #5 0.86  4,000 4,108 590 0.86 0% 1% 100% 2%
mandelbrot  #5 13.36  16,000 33,504 590 13.36 0% 0% 100% 0%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.26  1,000 3,228 692 0.11 8% 56% 8% 16%
mandelbrot  #2 1.11  4,000 4,752 692 1.11 1% 100% 2% 4%
mandelbrot  #2 17.46  16,000 34,164 692 17.45 0% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.19  1,000 492 726 0.09 26% 17% 18% 79%
mandelbrot  #9 0.23  4,000 5,092 726 0.87 96% 91% 95% 100%
mandelbrot  #9 3.50  16,000 34,452 726 13.48 95% 95% 99% 96%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.21  1,000 8 1017 0.09 10% 33% 29% 77%
mandelbrot  #7 0.23  4,000 5,360 1017 0.88 96% 96% 100% 96%
mandelbrot  #7 3.46  16,000 34,776 1017 13.79 100% 100% 100% 99%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.16  1,000 8 1002 0.04 44% 13% 20% 38%
mandelbrot  #6 0.07  4,000 784 1002 0.26 100% 86% 100% 100%
mandelbrot  #6 0.97  16,000 32,876 1002 3.81 100% 99% 99% 99%
source secs N mem gz cpu cpu load
n-body  0.24  500,000 1,012 1659 0.10 17% 4% 65% 20%
n-body  0.61  5,000,000 1,012 1659 0.61 0% 2% 0% 100%
n-body  6.05  50,000,000 1,084 1659 6.05 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #8 0.20  500,000 1,088 1517 0.10 15% 0% 70% 0%
n-body  #8 0.71  5,000,000 1,076 1517 0.71 4% 0% 1% 100%
n-body  #8 7.03  50,000,000 1,028 1517 7.03 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.28  500,000 1,708 1808 0.08 76% 0% 15% 10%
n-body  #7 0.42  5,000,000 1,720 1808 0.42 0% 0% 100% 0%
n-body  #7 4.10  50,000,000 1,724 1808 4.10 100% 1% 1% 0%
source secs N mem gz cpu cpu load
n-body  #6 0.24  500,000 1,080 1668 0.10 4% 0% 9% 87%
n-body  #6 0.59  5,000,000 1,012 1668 0.58 100% 2% 2% 3%
n-body  #6 5.71  50,000,000 1,084 1668 5.71 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.23  500,000 1,772 1749 0.10 0% 5% 13% 83%
n-body  #5 0.63  5,000,000 1,716 1749 0.63 0% 100% 2% 0%
n-body  #5 6.16  50,000,000 1,780 1749 6.16 0% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  0.20  500,000 8 1927 0.05 5% 68% 16% 0%
n-body  0.22  5,000,000 768 1927 0.22 9% 100% 9% 14%
n-body  2.12  50,000,000 764 1927 2.12 0% 2% 100% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.44  500,000 1,708 1879 0.08 83% 0% 11% 35%
n-body  #2 0.49  5,000,000 1,720 1879 0.49 98% 6% 2% 0%
n-body  #2 4.12  50,000,000 1,776 1879 4.11 0% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #3 0.24  500,000 1,024 1396 0.11 4% 0% 75% 13%
n-body  #3 0.64  5,000,000 1,012 1396 0.64 3% 0% 0% 100%
n-body  #3 6.35  50,000,000 1,028 1396 6.35 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #9 0.28  500,000 1,088 2056 0.10 4% 21% 61% 18%
n-body  #9 0.62  5,000,000 1,024 2056 0.61 3% 2% 100% 2%
n-body  #9 6.04  50,000,000 1,028 2056 6.04 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.24  500,000 768 1428 0.10 58% 13% 8% 26%
n-body  #4 0.58  5,000,000 764 1428 0.58 0% 2% 0% 98%
n-body  #4 5.70  50,000,000 768 1428 5.70 0% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.19  2,000 1,820 513 0.06 16% 0% 68% 0%
pidigits  #4 0.31  6,000 3,948 513 0.31 3% 3% 100% 16%
pidigits  #4 0.89  10,000 4,280 513 0.88 0% 2% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #5 0.26  2,000 1,696 798 0.05 16% 0% 19% 78%
pidigits  #5 0.31  6,000 4,112 798 0.31 3% 3% 97% 7%
pidigits  #5 0.87  10,000 4,224 798 0.86 0% 1% 99% 0%
source secs N mem gz cpu cpu load
pidigits  #6 0.22  2,000 1,740 986 0.13 32% 33% 50% 45%
pidigits  #6 0.26  6,000 4,324 986 0.98 96% 100% 100% 96%
pidigits  #6 0.66  10,000 5,152 986 2.61 100% 100% 100% 100%
source secs N mem gz cpu cpu load
regex-redux  #5 0.22  50,000 4,920 852 0.06 17% 14% 50% 9%
regex-redux  #5 0.43  500,000 31,412 852 0.45 37% 70% 75% 43%
regex-redux  #5 3.48  5,000,000 215,612 852 4.18 8% 21% 88% 7%
source secs N mem gz cpu cpu load
regex-redux  #3 0.44  50,000 8,336 853 0.22 31% 34% 2% 65%
regex-redux  #3 1.33  500,000 33,200 853 1.86 42% 9% 1% 90%
regex-redux  #3 12.36  5,000,000 217,012 853 18.02 51% 0% 0% 95%
source secs N mem gz cpu cpu load
regex-redux  #6 0.17  50,000 1,780 2850 0.04 35% 12% 13% 19%
regex-redux  #6 0.18  500,000 33,332 2850 0.24 18% 18% 63% 61%
regex-redux  #6 1.15  5,000,000 275,820 2850 2.19 100% 29% 31% 32%
source secs N mem gz cpu cpu load
regex-redux  #2 0.25  50,000 1,856 700 0.07 8% 27% 8% 70%
regex-redux  #2 0.36  500,000 24,176 700 0.39 6% 92% 6% 23%
regex-redux  #2 2.83  5,000,000 204,888 700 3.61 45% 1% 1% 84%
source secs N mem gz cpu cpu load
regex-redux  #4 0.22  50,000 4,764 1315 0.08 13% 17% 43% 33%
regex-redux  #4 0.16  500,000 23,936 1315 0.36 44% 53% 76% 60%
regex-redux  #4 1.10  5,000,000 203,924 1315 3.40 63% 77% 71% 100%
source secs N mem gz cpu cpu load
regex-redux  0.33  50,000 5,088 656 0.07 3% 63% 13% 27%
regex-redux  0.44  500,000 23,660 656 0.39 0% 93% 5% 2%
regex-redux  3.64  5,000,000 208,500 656 3.63 1% 2% 100% 1%
source secs N mem gz cpu cpu load
reverse-complement  0.24  250,000 1,776 592 0.04 15% 17% 0% 82%
reverse-complement  5.85  100,000,000 979,912 592 5.85 1% 100% 0% 2%
source secs N mem gz cpu cpu load
reverse-complement  #7 0.26  250,000 1,720 1853 0.01 4% 8% 0% 92%
reverse-complement  #7 0.52  100,000,000 1,788 1853 0.52 0% 98% 0% 2%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.24  250,000 1,824 1832 0.02 8% 13% 42% 52%
reverse-complement  #6 2.91  100,000,000 1,513,700 1832 3.92 15% 33% 23% 66%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.27  250,000 4,432 840 0.02 0% 19% 14% 85%
reverse-complement  #3 2.44  100,000,000 500,020 840 2.43 0% 1% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.21  250,000 8 2093 0.01 10% 52% 14% 33%
reverse-complement  #2 0.63  100,000,000 499,688 2093 0.63 0% 2% 2% 100%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.33  250,000 4,128 720 0.13 6% 3% 64% 19%
reverse-complement  #5 33.85  100,000,000 765,348 720 33.84 0% 0% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.17  500 8 1278 0.07 28% 13% 65% 6%
spectral-norm  #8 0.47  3,000 1,188 1278 1.83 100% 98% 100% 98%
spectral-norm  #8 1.54  5,500 1,192 1278 6.13 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.20  500 8 1044 0.07 14% 60% 25% 29%
spectral-norm  #5 0.40  3,000 1,880 1044 1.58 100% 100% 98% 98%
spectral-norm  #5 1.33  5,500 3,368 1044 5.28 99% 99% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.17  500 8 1044 0.04 19% 13% 56% 33%
spectral-norm  #6 0.22  3,000 1,184 1044 0.86 100% 96% 100% 96%
spectral-norm  #6 0.72  5,500 1,192 1044 2.85 99% 99% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.25  500 1,720 452 0.08 72% 8% 23% 4%
spectral-norm  1.61  3,000 3,208 452 1.61 1% 0% 100% 4%
spectral-norm  5.38  5,500 3,256 452 5.38 0% 0% 100% 1%