The Computer Language
Benchmarks Game

all C++ g++ programs & measurements

g++ (Ubuntu 10.2.0-13ubuntu1) 10.2.0

source secs N mem gz cpu cpu load
binary-trees  #2 0.15  7 8 508 0.00 0% 44% 15% 25%
binary-trees  #2 0.12  14 4,908 508 0.12 0% 83% 23% 0%
binary-trees  #2 22.18  21 265,032 508 22.17 0% 0% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #6 0.16  7 304 844 0.01 25% 0% 6% 82%
binary-trees  #6 0.02  14 0 844 0.03 100% 100% 100% 0%
binary-trees  #6 1.83  21 265,728 844 4.62 66% 89% 59% 40%
source secs N mem gz cpu cpu load
binary-trees  #7 0.15  7 8 1122 0.01 38% 31% 7% 27%
binary-trees  #7  14 0 1122 0.03
binary-trees  #7 1.04  21 154,824 1122 3.68 88% 100% 88% 86%
source secs N mem gz cpu cpu load
binary-trees  #4 0.13  7 8 1270 0.01 0% 25% 38% 0%
binary-trees  #4  14 0 1270 0.02
binary-trees  #4 1.47  21 134,300 1270 3.79 49% 52% 99% 60%
source secs N mem gz cpu cpu load
binary-trees  #5 0.13  7 8 885 0.00 0% 8% 27% 54%
binary-trees  #5  14 0 885 0.03
binary-trees  #5 1.19  21 199,952 885 4.22 88% 87% 87% 98%
source secs N mem gz cpu cpu load
binary-trees  #8 0.15  7 304 820 0.01 20% 0% 29% 50%
binary-trees  #8 0.01  14 0 820 0.04 0% 50% 50% 100%
binary-trees  #8 2.08  21 265,732 820 5.14 46% 66% 88% 48%
source secs N mem gz cpu cpu load
binary-trees  #9 0.18  7 376 809 0.02 32% 0% 24% 28%
binary-trees  #9 0.02  14 0 809 0.04 50% 0% 67% 100%
binary-trees  #9 1.80  21 135,712 809 5.04 57% 56% 69% 100%
source secs N mem gz cpu cpu load
binary-trees  #3 0.16  7 8 945 0.00 50% 0% 18% 38%
binary-trees  #3 0.01  14 0 945 0.03 50% 50% 50% 50%
binary-trees  #3 1.83  21 265,268 945 4.60 66% 88% 60% 40%
source secs N mem gz cpu cpu load
binary-trees  0.19  7 8 754 0.01 63% 0% 0% 45%
binary-trees  0.02  14 0 754 0.04 50% 67% 67% 67%
binary-trees  2.63  21 1,947,564 754 8.96 83% 91% 85% 84%
source secs N mem gz cpu cpu load
fannkuch-redux  0.29  10 1,788 1059 0.28 69% 24% 23% 57%
fannkuch-redux  0.86  11 1,652 1059 3.33 97% 94% 100% 99%
fannkuch-redux  11.16  12 1,920 1059 44.00 99% 96% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.21  10 1,876 1440 0.25 52% 29% 45% 50%
fannkuch-redux  #2 0.79  11 1,804 1440 3.07 94% 97% 98% 100%
fannkuch-redux  #2 10.38  12 2,060 1440 40.91 100% 95% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.21  10 1,872 1439 0.25 36% 55% 40% 70%
fannkuch-redux  #4 0.77  11 1,876 1439 3.00 100% 94% 99% 100%
fannkuch-redux  #4 10.25  12 2,060 1439 40.19 100% 96% 99% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.20  10 792 1150 0.09 5% 0% 15% 74%
fannkuch-redux  #7 1.11  11 740 1150 1.11 1% 0% 0% 100%
fannkuch-redux  #7 14.33  12 792 1150 14.33 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.24  10 1,780 980 0.21 40% 21% 46% 39%
fannkuch-redux  #5 0.61  11 1,780 980 2.39 98% 100% 100% 94%
fannkuch-redux  #5 8.08  12 1,900 980 31.42 98% 100% 98% 93%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.38  10 736 593 0.25 84% 3% 14% 18%
fannkuch-redux  #3 3.06  11 668 593 3.06 2% 0% 0% 100%
fannkuch-redux  #3 40.47  12 740 593 40.46 0% 0% 1% 100%
source secs N mem gz cpu cpu load
fasta  0.18  250,000 8 1057 0.03 22% 24% 0% 59%
fasta  0.24  2,500,000 1,680 1057 0.23 0% 100% 0% 0%
fasta  2.08  25,000,000 1,804 1057 2.08 0% 100% 0% 0%
source secs N mem gz cpu cpu load
fasta  #8 0.13  250,000 8 2751 0.02 0% 38% 23% 8%
fasta  #8 0.09  2,500,000 2,404 2751 0.17 90% 90% 20% 27%
fasta  #8 0.78  25,000,000 2,468 2751 1.54 8% 99% 99% 3%
source secs N mem gz cpu cpu load
fasta  #6 0.18  250,000 8 2324 0.06 58% 11% 22% 42%
fasta  #6 0.12  2,500,000 4,384 2324 0.43 92% 92% 91% 83%
fasta  #6 1.05  25,000,000 4,520 2324 4.04 97% 97% 96% 97%
fasta  #7 Make Error  250,000
source secs N mem gz cpu cpu load
fasta  #2 0.20  250,000 464 1127 0.03 25% 57% 0% 30%
fasta  #2 0.23  2,500,000 1,612 1127 0.23 0% 100% 4% 0%
fasta  #2 2.11  25,000,000 1,800 1127 2.11 0% 100% 0% 0%
source secs N mem gz cpu cpu load
fasta  #4 0.12  250,000 8 1287 0.04 0% 0% 42% 64%
fasta  #4 0.36  2,500,000 732 1287 0.36 3% 0% 0% 100%
fasta  #4 3.37  25,000,000 796 1287 3.37 0% 100% 1% 0%
source secs N mem gz cpu cpu load
fasta  #5 0.18  250,000 8 2344 0.05 17% 35% 24% 35%
fasta  #5 0.12  2,500,000 4,440 2344 0.42 83% 83% 90% 93%
fasta  #5 1.04  25,000,000 4,464 2344 3.85 92% 92% 92% 92%
source secs N mem gz cpu cpu load
fasta  #3 0.15  250,000 700 1307 0.03 47% 6% 33% 50%
fasta  #3 0.29  2,500,000 1,612 1307 0.29 100% 4% 0% 0%
fasta  #3 2.63  25,000,000 1,744 1307 2.63 100% 0% 0% 0%
source secs N mem gz cpu cpu load
k-nucleotide  0.27  250,000 24,448 1446 0.24 42% 37% 11% 48%
k-nucleotide  0.98  2,500,000 97,092 1446 1.59 11% 40% 70% 67%
k-nucleotide  7.02  25,000,000 756,284 1446 14.73 30% 69% 20% 91%
source secs N mem gz cpu cpu load
k-nucleotide  #2 0.31  250,000 26,536 1631 0.23 21% 17% 9% 60%
k-nucleotide  #2 0.56  2,500,000 36,196 1631 0.82 30% 47% 50% 30%
k-nucleotide  #2 1.95  25,000,000 156,372 1631 5.91 73% 70% 92% 70%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.31  250,000 38,100 1276 0.38 42% 41% 53% 37%
k-nucleotide  #3 0.79  2,500,000 55,228 1276 1.76 59% 49% 66% 52%
k-nucleotide  #3 4.12  25,000,000 165,856 1276 13.94 81% 79% 98% 81%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.17  1,000 296 726 0.07 7% 12% 33% 63%
mandelbrot  #9 0.23  4,000 5,108 726 0.88 96% 96% 100% 96%
mandelbrot  #9 3.50  16,000 34,392 726 13.47 96% 95% 99% 95%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.16  1,000 8 3542 0.02 18% 0% 63% 20%
mandelbrot  #4 0.06  4,000 716 3542 0.22 83% 86% 100% 100%
mandelbrot  #4 0.84  16,000 34,604 3542 3.27 98% 99% 98% 95%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.19  1,000 8 1017 0.07 32% 10% 35% 63%
mandelbrot  #7 0.23  4,000 5,360 1017 0.91 100% 96% 96% 100%
mandelbrot  #7 3.47  16,000 34,664 1017 13.81 100% 100% 99% 100%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.18  1,000 472 742 0.07 17% 12% 31% 35%
mandelbrot  #8 0.32  4,000 5,044 742 0.85 97% 97% 39% 41%
mandelbrot  #8 4.82  16,000 34,420 742 13.19 100% 100% 38% 38%
source secs N mem gz cpu cpu load
mandelbrot  0.16  1,000 296 1791 0.03 13% 0% 31% 69%
mandelbrot  0.06  4,000 772 1791 0.23 86% 100% 86% 100%
mandelbrot  0.90  16,000 31,724 1791 3.48 98% 100% 98% 97%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.20  1,000 300 1002 0.03 30% 0% 32% 57%
mandelbrot  #6 0.07  4,000 808 1002 0.26 100% 88% 100% 100%
mandelbrot  #6 0.97  16,000 32,236 1002 3.82 99% 100% 99% 99%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.25  1,000 1,612 414 0.12 0% 0% 16% 71%
mandelbrot  #3 1.81  4,000 1,684 414 1.81 1% 0% 1% 100%
mandelbrot  #3 28.55  16,000 1,748 414 28.54 0% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.31  1,000 1,748 692 0.07 52% 0% 3% 47%
mandelbrot  #2 1.11  4,000 4,660 692 1.11 100% 1% 0% 3%
mandelbrot  #2 17.44  16,000 34,052 692 17.43 100% 1% 0% 1%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.18  1,000 668 590 0.06 0% 28% 53% 0%
mandelbrot  #5 0.86  4,000 4,152 590 0.86 0% 1% 100% 4%
mandelbrot  #5 13.32  16,000 33,556 590 13.31 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  0.16  500,000 1,060 1659 0.07 6% 24% 56% 6%
n-body  0.62  5,000,000 1,052 1659 0.62 0% 0% 100% 2%
n-body  6.06  50,000,000 1,116 1659 6.04 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #8 0.18  500,000 8 1765 0.05 65% 6% 0% 29%
n-body  #8 0.42  5,000,000 1,116 1765 0.42 100% 0% 0% 0%
n-body  #8 4.10  50,000,000 1,060 1765 4.10 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.19  500,000 1,620 1749 0.07 0% 0% 20% 68%
n-body  #5 0.62  5,000,000 1,680 1749 0.62 0% 100% 0% 0%
n-body  #5 6.13  50,000,000 1,744 1749 6.13 0% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.17  500,000 452 1879 0.05 50% 0% 0% 31%
n-body  #2 0.42  5,000,000 1,744 1879 0.42 100% 2% 2% 2%
n-body  #2 4.09  50,000,000 1,688 1879 4.09 100% 0% 1% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.18  500,000 476 1808 0.05 42% 0% 0% 53%
n-body  #7 0.42  5,000,000 1,748 1808 0.42 100% 5% 0% 7%
n-body  #7 4.09  50,000,000 1,800 1808 4.08 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #3 0.18  500,000 412 1763 0.05 5% 11% 21% 65%
n-body  #3 0.42  5,000,000 1,676 1763 0.42 98% 2% 0% 2%
n-body  #3 4.11  50,000,000 1,744 1763 4.11 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #9 0.15  500,000 1,064 1773 0.05 27% 47% 7% 7%
n-body  #9 0.45  5,000,000 936 1773 0.45 0% 100% 0% 0%
n-body  #9 4.36  50,000,000 1,060 1773 4.36 0% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #6 0.20  500,000 1,052 1668 0.06 47% 0% 25% 25%
n-body  #6 0.58  5,000,000 1,000 1668 0.58 2% 0% 0% 100%
n-body  #6 5.69  50,000,000 1,060 1668 5.69 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #4 0.15  500,000 740 1428 0.06 7% 0% 29% 60%
n-body  #4 0.58  5,000,000 672 1428 0.57 2% 0% 0% 100%
n-body  #4 5.68  50,000,000 740 1428 5.68 0% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #5 0.20  2,000 1,848 798 0.03 0% 20% 62% 0%
pidigits  #5 0.25  6,000 3,920 798 0.25 0% 4% 100% 4%
pidigits  #5 0.72  10,000 4,196 798 0.72 1% 0% 100% 6%
source secs N mem gz cpu cpu load
pidigits  #4 0.20  2,000 1,672 513 0.03 0% 24% 15% 48%
pidigits  #4 0.25  6,000 3,868 513 0.25 0% 0% 100% 7%
pidigits  #4 0.71  10,000 4,176 513 0.71 6% 0% 100% 1%
source secs N mem gz cpu cpu load
pidigits  #6 0.19  2,000 420 986 0.12 29% 37% 17% 47%
pidigits  #6 0.23  6,000 4,328 986 0.89 100% 100% 100% 96%
pidigits  #6 0.60  10,000 4,944 986 2.37 100% 100% 98% 100%
source secs N mem gz cpu cpu load
regex-redux  #5 0.20  50,000 4,172 852 0.05 29% 48% 35% 5%
regex-redux  #5 0.41  500,000 30,436 852 0.43 75% 20% 10% 7%
regex-redux  #5 3.48  5,000,000 215,480 852 4.18 7% 7% 18% 88%
source secs N mem gz cpu cpu load
regex-redux  #6 0.21  50,000 3,700 2850 0.03 45% 0% 20% 25%
regex-redux  #6 0.18  500,000 33,164 2850 0.22 32% 18% 22% 100%
regex-redux  #6 1.13  5,000,000 275,716 2850 2.17 100% 31% 32% 32%
source secs N mem gz cpu cpu load
regex-redux  #2 0.23  50,000 3,716 700 0.06 17% 52% 13% 22%
regex-redux  #2 0.32  500,000 31,940 700 0.37 3% 45% 3% 72%
regex-redux  #2 2.80  5,000,000 202,404 700 3.58 0% 44% 84% 1%
source secs N mem gz cpu cpu load
regex-redux  #3 0.35  50,000 8,352 853 0.20 20% 14% 11% 71%
regex-redux  #3 1.31  500,000 33,300 853 1.84 46% 91% 2% 8%
regex-redux  #3 12.39  5,000,000 217,384 853 18.05 1% 0% 100% 46%
source secs N mem gz cpu cpu load
regex-redux  #4 0.23  50,000 3,900 1315 0.06 27% 8% 36% 33%
regex-redux  #4 0.17  500,000 21,292 1315 0.37 56% 53% 71% 65%
regex-redux  #4 1.08  5,000,000 203,816 1315 3.38 78% 99% 65% 73%
source secs N mem gz cpu cpu load
regex-redux  0.20  50,000 4,468 656 0.04 5% 20% 15% 48%
regex-redux  0.41  500,000 23,708 656 0.36 0% 2% 95% 0%
regex-redux  3.61  5,000,000 199,996 656 3.60 2% 0% 100% 2%
source secs N mem gz cpu cpu load
reverse-complement  0.20  250,000 1,616 592 0.02 20% 25% 0% 64%
reverse-complement  5.96  100,000,000 979,844 592 5.95 0% 100% 0% 0%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.25  250,000 4,000 720 0.09 0% 19% 15% 72%
reverse-complement  #5 34.04  100,000,000 762,944 720 34.03 0% 100% 0% 1%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.19  250,000 1,612 840 0.01 17% 30% 0% 63%
reverse-complement  #3 2.42  100,000,000 499,964 840 2.42 0% 100% 0% 0%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.21  250,000 3,500 2093 0.01 0% 19% 45% 0%
reverse-complement  #2 0.63  100,000,000 499,704 2093 0.63 0% 100% 2% 0%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.19  250,000 4,352 1832 0.02 18% 30% 42% 0%
reverse-complement  #6 2.88  100,000,000 1,505,952 1832 3.86 22% 35% 80% 3%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.21  500 8 1044 0.03 18% 24% 29% 55%
spectral-norm  #6 0.22  3,000 1,100 1044 0.86 96% 95% 100% 100%
spectral-norm  #6 0.72  5,500 1,216 1044 2.84 100% 100% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.23  500 580 1044 0.06 27% 14% 22% 50%
spectral-norm  #5 0.40  3,000 1,776 1044 1.58 100% 98% 98% 100%
spectral-norm  #5 1.33  5,500 3,276 1044 5.28 100% 99% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.15  500 8 1278 0.06 7% 50% 33% 21%
spectral-norm  #8 0.47  3,000 1,092 1278 1.83 100% 100% 98% 98%
spectral-norm  #8 1.52  5,500 2,364 1278 6.06 100% 100% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  0.19  500 548 452 0.05 0% 22% 17% 44%
spectral-norm  1.61  3,000 2,972 452 1.60 1% 0% 100% 2%
spectral-norm  5.37  5,500 3,216 452 5.37 0% 0% 100% 1%