The Computer Language
Benchmarks Game

all C++ g++ programs & measurements

g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0

source secs N mem gz cpu cpu load
binary-trees  #3 0.59  7 8 945 0.01 42% 25% 34% 34%
binary-trees  #3 0.03  14 0 945 0.07 67% 50% 50% 67%
binary-trees  #3 5.77  21 221,800 945 16.56 77% 41% 90% 83%
source secs N mem gz cpu cpu load
binary-trees  #6 0.33  7 8 844 0.02 68% 9% 32% 9%
binary-trees  #6 0.04  14 0 844 0.08 33% 80% 75% 50%
binary-trees  #6 5.78  21 221,724 844 16.57 90% 79% 81% 41%
source secs N mem gz cpu cpu load
binary-trees  0.53  7 8 754 0.01 6% 79% 78% 0%
binary-trees  0.04  14 0 754 0.10 50% 60% 67% 67%
binary-trees  8.90  21 1,989,368 754 32.88 91% 98% 92% 91%
source secs N mem gz cpu cpu load
binary-trees  #4 0.56  7 8 1270 0.01 2% 86% 71% 2%
binary-trees  #4 0.03  14 0 1270 0.07 33% 67% 75% 50%
binary-trees  #4 4.37  21 134,340 1270 11.28 57% 84% 53% 66%
source secs N mem gz cpu cpu load
binary-trees  #9 0.35  7 8 809 0.02 6% 3% 8% 58%
binary-trees  #9 0.03  14 0 809 0.08 75% 67% 67% 50%
binary-trees  #9 3.96  21 113,236 809 12.79 74% 84% 98% 69%
source secs N mem gz cpu cpu load
binary-trees  #8 0.51  7 8 820 0.02 76% 6% 0% 47%
binary-trees  #8 0.03  14 0 820 0.09 100% 67% 50% 100%
binary-trees  #8 6.28  21 221,980 820 16.12 89% 65% 52% 52%
source secs N mem gz cpu cpu load
binary-trees  #2 0.48  7 8 508 0.01 27% 34% 19% 40%
binary-trees  #2 0.18  14 0 508 0.18 5% 0% 0% 100%
binary-trees  #2 38.27  21 265,068 508 38.24 1% 48% 52% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.49  10 8 980 0.30 76% 14% 18% 49%
fannkuch-redux  #5 0.83  11 1,648 980 3.22 95% 99% 100% 98%
fannkuch-redux  #5 10.71  12 1,708 980 42.28 100% 96% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.60  10 8 1150 0.18 43% 3% 2% 66%
fannkuch-redux  #7 2.02  11 532 1150 2.02 0% 1% 0% 100%
fannkuch-redux  #7 25.85  12 600 1150 25.84 100% 0% 0% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.83  10 536 593 0.43 29% 1% 13% 66%
fannkuch-redux  #3 5.24  11 600 593 5.24 2% 100% 1% 0%
fannkuch-redux  #3 71.91  12 596 593 71.89 0% 1% 100% 0%
source secs N mem gz cpu cpu load
fannkuch-redux  0.45  10 8 1059 0.42 22% 78% 58% 26%
fannkuch-redux  1.49  11 1,588 1059 5.76 93% 99% 97% 100%
fannkuch-redux  18.22  12 1,784 1059 70.96 97% 99% 100% 94%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.63  10 8 1440 0.39 32% 41% 37% 50%
fannkuch-redux  #2 1.26  11 1,796 1440 4.85 98% 91% 99% 98%
fannkuch-redux  #2 17.23  12 1,944 1440 67.19 93% 100% 98% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.62  10 8 1439 0.37 82% 24% 18% 56%
fannkuch-redux  #4 1.17  11 1,796 1439 4.54 100% 92% 98% 98%
fannkuch-redux  #4 16.05  12 1,944 1439 62.82 100% 98% 93% 100%
source secs N mem gz cpu cpu load
fasta  #4 0.43  250,000 8 1287 0.08 36% 7% 7% 60%
fasta  #4 0.68  2,500,000 536 1287 0.68 1% 63% 36% 0%
fasta  #4 6.34  25,000,000 600 1287 6.34 3% 100% 0% 1%
source secs N mem gz cpu cpu load
fasta  0.48  250,000 8 1057 0.07 6% 77% 54% 0%
fasta  0.63  2,500,000 1,612 1057 0.63 14% 3% 0% 100%
fasta  5.85  25,000,000 1,612 1057 5.84 68% 1% 3% 33%
source secs N mem gz cpu cpu load
fasta  #6 0.43  250,000 8 2324 0.10 27% 48% 51% 11%
fasta  #6 0.23  2,500,000 712 2324 0.71 83% 79% 81% 74%
fasta  #6 1.73  25,000,000 4,828 2324 5.65 81% 82% 82% 83%
source secs N mem gz cpu cpu load
fasta  #5 0.42  250,000 8 2344 0.09 49% 21% 50% 16%
fasta  #5 0.22  2,500,000 712 2344 0.67 77% 84% 86% 67%
fasta  #5 1.74  25,000,000 4,568 2344 5.42 79% 78% 79% 78%
source secs N mem gz cpu cpu load
fasta  #2 0.39  250,000 8 1127 0.05 3% 45% 75% 0%
fasta  #2 0.46  2,500,000 1,612 1127 0.46 20% 4% 0% 100%
fasta  #2 4.10  25,000,000 1,612 1127 4.10 2% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #7 0.48  250,000 8 2711 0.06 62% 2% 4% 69%
fasta  #7 0.17  2,500,000 0 2711 0.49 75% 82% 73% 73%
fasta  #7 1.46  25,000,000 2,024 2711 4.37 75% 76% 75% 76%
source secs N mem gz cpu cpu load
fasta  #3 0.40  250,000 8 1307 0.05 3% 35% 85% 2%
fasta  #3 0.47  2,500,000 1,548 1307 0.47 4% 2% 2% 100%
fasta  #3 4.15  25,000,000 1,612 1307 4.14 5% 0% 100% 1%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.76  250,000 31,516 1276 0.73 18% 53% 69% 19%
k-nucleotide  #3 1.32  2,500,000 55,352 1276 2.94 51% 55% 94% 49%
k-nucleotide  #3 7.56  25,000,000 165,944 1276 25.18 97% 80% 79% 79%
source secs N mem gz cpu cpu load
k-nucleotide  0.62  250,000 8 1446 0.40 45% 27% 28% 30%
k-nucleotide  1.61  2,500,000 60,952 1446 2.67 17% 70% 11% 81%
k-nucleotide  11.75  25,000,000 756,380 1446 24.86 11% 52% 60% 91%
source secs N mem gz cpu cpu load
k-nucleotide  #2 0.81  250,000 4,888 1631 0.43 9% 44% 83% 13%
k-nucleotide  #2 0.98  2,500,000 25,424 1631 1.49 59% 40% 32% 56%
k-nucleotide  #2 3.88  25,000,000 156,164 1631 12.02 72% 92% 71% 77%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.36  1,000 8 3095 0.04 69% 6% 11% 53%
mandelbrot  #4 0.13  4,000 0 3095 0.46 92% 92% 92% 92%
mandelbrot  #4 1.78  16,000 34,684 3095 6.96 98% 98% 98% 99%
source secs N mem gz cpu cpu load
mandelbrot  0.28  1,000 0 1791 0.05 7% 64% 43% 7%
mandelbrot  0.10  4,000 0 1791 0.39 100% 91% 90% 100%
mandelbrot  1.51  16,000 26,256 1791 5.98 100% 99% 99% 99%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.53  1,000 8 590 0.10 81% 0% 4% 31%
mandelbrot  #5 1.49  4,000 4,304 590 1.49 7% 1% 99% 1%
mandelbrot  #5 23.39  16,000 33,592 590 23.39 0% 1% 100% 0%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.50  1,000 8 414 0.22 43% 2% 4% 62%
mandelbrot  #3 3.40  4,000 1,472 414 3.40 4% 0% 1% 100%
mandelbrot  #3 53.99  16,000 1,612 414 53.98 96% 0% 0% 5%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.53  1,000 8 1017 0.12 55% 6% 8% 70%
mandelbrot  #7 0.40  4,000 816 1017 1.54 97% 97% 98% 97%
mandelbrot  #7 6.09  16,000 34,752 1017 24.23 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.55  1,000 8 692 0.12 38% 2% 6% 58%
mandelbrot  #2 1.87  4,000 5,024 692 1.87 12% 0% 100% 1%
mandelbrot  #2 29.58  16,000 34,452 692 29.57 0% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.36  1,000 8 726 0.10 75% 11% 8% 29%
mandelbrot  #9 0.35  4,000 812 726 1.31 97% 97% 97% 97%
mandelbrot  #9 5.33  16,000 34,436 726 20.48 99% 95% 95% 95%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.58  1,000 8 742 0.12 7% 75% 76% 11%
mandelbrot  #8 0.52  4,000 5,088 742 1.41 40% 40% 98% 98%
mandelbrot  #8 8.03  16,000 34,472 742 21.78 75% 61% 100% 37%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.58  1,000 8 1002 0.06 61% 5% 5% 50%
mandelbrot  #6 0.13  4,000 0 1002 0.48 92% 100% 92% 92%
mandelbrot  #6 1.82  16,000 29,248 1002 7.15 100% 98% 98% 98%
source secs N mem gz cpu cpu load
n-body  0.48  500,000 8 1659 0.20 39% 0% 4% 51%
n-body  1.98  5,000,000 864 1659 1.98 51% 3% 0% 56%
n-body  19.71  50,000,000 924 1659 19.70 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.52  500,000 8 1749 0.14 23% 81% 13% 12%
n-body  #5 1.34  5,000,000 1,612 1749 1.34 0% 0% 100% 1%
n-body  #5 13.30  50,000,000 1,612 1749 13.29 100% 0% 0% 1%
source secs N mem gz cpu cpu load
n-body  #6 0.70  500,000 8 1668 0.20 38% 39% 3% 54%
n-body  #6 1.98  5,000,000 924 1668 1.98 3% 1% 2% 100%
n-body  #6 19.75  50,000,000 928 1668 19.75 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.57  500,000 8 1808 0.09 42% 0% 11% 61%
n-body  #7 0.82  5,000,000 1,548 1808 0.81 2% 1% 1% 100%
n-body  #7 8.08  50,000,000 1,612 1808 8.07 1% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #3 0.35  500,000 8 1763 0.09 0% 3% 3% 68%
n-body  #3 0.81  5,000,000 1,544 1763 0.81 100% 2% 0% 4%
n-body  #3 8.06  50,000,000 1,612 1763 8.05 100% 1% 0% 1%
source secs N mem gz cpu cpu load
n-body  #2 0.44  500,000 8 1879 0.09 42% 0% 2% 50%
n-body  #2 0.78  5,000,000 1,544 1879 0.78 4% 1% 100% 5%
n-body  #2 7.70  50,000,000 1,612 1879 7.69 100% 0% 1% 1%
source secs N mem gz cpu cpu load
n-body  #9 0.51  500,000 8 1773 0.08 0% 73% 78% 6%
n-body  #9 0.80  5,000,000 928 1773 0.80 7% 3% 100% 1%
n-body  #9 7.92  50,000,000 924 1773 7.92 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #8 0.40  500,000 8 1765 0.08 0% 73% 66% 0%
n-body  #8 0.82  5,000,000 928 1765 0.81 14% 1% 100% 0%
n-body  #8 8.06  50,000,000 928 1765 8.06 100% 1% 1% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.63  500,000 8 1428 0.24 0% 48% 83% 2%
n-body  #4 2.38  5,000,000 600 1428 2.37 2% 1% 1% 100%
n-body  #4 23.68  50,000,000 600 1428 23.67 0% 0% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.54  2,000 8 513 0.07 36% 0% 2% 56%
pidigits  #4 0.63  6,000 4,080 513 0.63 13% 0% 2% 100%
pidigits  #4 1.82  10,000 4,312 513 1.81 1% 1% 2% 100%
source secs N mem gz cpu cpu load
regex-redux  0.51  50,000 8 656 0.10 36% 2% 0% 57%
regex-redux  1.07  500,000 23,672 656 0.94 13% 1% 0% 88%
regex-redux  9.42  5,000,000 202,260 656 9.41 100% 1% 1% 1%
source secs N mem gz cpu cpu load
regex-redux  #2 0.46  50,000 8 700 0.12 36% 0% 16% 43%
regex-redux  #2 0.70  500,000 32,468 700 0.93 0% 72% 4% 63%
regex-redux  #2 5.99  5,000,000 187,388 700 9.17 5% 2% 84% 64%
source secs N mem gz cpu cpu load
regex-redux  #4 0.63  50,000 8 1315 0.08 15% 75% 62% 3%
regex-redux  #4 0.28  500,000 784 1315 0.47 36% 100% 39% 34%
regex-redux  #4 1.86  5,000,000 203,856 1315 4.44 99% 50% 48% 44%
source secs N mem gz cpu cpu load
regex-redux  #6 0.60  50,000 8 2850 0.05 5% 61% 24% 23%
regex-redux  #6 0.32  500,000 728 2850 0.42 25% 23% 100% 23%
regex-redux  #6 2.41  5,000,000 275,980 2850 4.08 22% 39% 85% 24%
source secs N mem gz cpu cpu load
regex-redux  #5 0.46  50,000 8 852 0.11 37% 2% 17% 47%
regex-redux  #5 0.71  500,000 26,468 852 0.94 77% 18% 15% 30%
regex-redux  #5 6.30  5,000,000 214,544 852 9.18 16% 25% 16% 90%
source secs N mem gz cpu cpu load
regex-redux  #3 0.58  50,000 3,648 853 0.30 3% 68% 47% 2%
regex-redux  #3 2.06  500,000 33,520 853 2.96 25% 12% 51% 67%
regex-redux  #3 18.11  5,000,000 217,296 853 26.99 1% 42% 8% 100%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.65  250,000 8 720 0.13 55% 0% 2% 67%
reverse-complement  #5 47.28  100,000,000 744,792 720 47.26 69% 1% 1% 31%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.51  250,000 8 2093 0.02 4% 42% 88% 0%
reverse-complement  #2 1.89  100,000,000 499,672 2093 1.89 100% 2% 1% 1%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.34  250,000 8 840 0.02 6% 32% 70% 0%
reverse-complement  #3 4.75  100,000,000 500,020 840 4.74 100% 0% 0% 1%
source secs N mem gz cpu cpu load
reverse-complement  0.36  250,000 8 592 0.05 6% 38% 18% 31%
reverse-complement  11.68  100,000,000 979,932 592 11.65 64% 1% 1% 36%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.42  250,000 8 1832 0.04 16% 81% 22% 5%
reverse-complement  #6 6.62  100,000,000 1,578,600 1832 8.94 67% 17% 32% 20%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.38  500 8 1044 0.09 29% 10% 31% 47%
spectral-norm  #6 0.61  3,000 992 1044 2.37 97% 98% 97% 98%
spectral-norm  #6 1.99  5,500 2,408 1044 7.87 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.42  500 8 1278 0.14 7% 73% 71% 12%
spectral-norm  #8 1.02  3,000 940 1278 4.03 99% 99% 100% 99%
spectral-norm  #8 3.40  5,500 2,340 1278 13.51 100% 100% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.46  500 8 1044 0.11 35% 11% 7% 61%
spectral-norm  #5 0.62  3,000 3,248 1044 2.40 97% 98% 97% 98%
spectral-norm  #5 2.00  5,500 3,244 1044 7.95 99% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.51  500 8 452 0.14 18% 25% 0% 48%
spectral-norm  4.79  3,000 3,072 452 4.78 1% 100% 0% 0%
spectral-norm  16.05  5,500 3,200 452 16.05 69% 0% 0% 31%