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  #2 0.12  7 0 508 0.00 67% 8% 0% 27%
binary-trees  #2 0.12  14 0 508 0.11 0% 0% 0% 92%
binary-trees  #2 21.42  21 265,116 508 21.42 1% 0% 100% 2%
source secs N mem gz cpu cpu load
binary-trees  #6 0.15  7 0 844 0.02 53% 40% 0% 6%
binary-trees  #6 0.02  14 0 844 0.05 50% 100% 0% 50%
binary-trees  #6 2.22  21 221,636 844 5.87 68% 89% 48% 62%
source secs N mem gz cpu cpu load
binary-trees  #4 0.12  7 0 1270 0.01 58% 17% 17% 0%
binary-trees  #4 0.02  14 0 1270 0.04 50% 67% 50% 100%
binary-trees  #4 1.53  21 112,820 1270 3.99 99% 59% 52% 53%
source secs N mem gz cpu cpu load
binary-trees  #8 0.13  7 0 820 0.01 33% 0% 43% 8%
binary-trees  #8 0.02  14 0 820 0.05 100% 67% 33% 67%
binary-trees  #8 2.35  21 221,596 820 6.22 74% 89% 58% 47%
source secs N mem gz cpu cpu load
binary-trees  #9 0.17  7 0 809 0.02 6% 0% 29% 50%
binary-trees  #9 0.02  14 0 809 0.05 100% 100% 67% 50%
binary-trees  #9 2.00  21 104,788 809 5.53 89% 59% 57% 75%
source secs N mem gz cpu cpu load
binary-trees  #3 0.15  7 0 945 0.01 27% 40% 33% 13%
binary-trees  #3 0.02  14 0 945 0.04 100% 0% 0% 0%
binary-trees  #3 2.23  21 221,708 945 5.93 48% 63% 89% 68%
source secs N mem gz cpu cpu load
binary-trees  0.12  7 0 754 0.01 15% 38% 0% 17%
binary-trees  0.02  14 0 754 0.05 67% 50% 0% 100%
binary-trees  2.66  21 1,804,720 754 9.31 86% 94% 85% 87%
source secs N mem gz cpu cpu load
fannkuch-redux  0.21  10 0 1059 0.28 33% 45% 35% 55%
fannkuch-redux  0.83  11 1,584 1059 3.22 98% 99% 99% 94%
fannkuch-redux  10.87  12 1,780 1059 42.70 99% 97% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.20  10 0 1440 0.29 47% 60% 35% 40%
fannkuch-redux  #2 0.83  11 1,740 1440 3.24 99% 94% 99% 100%
fannkuch-redux  #2 11.01  12 1,884 1440 43.17 98% 95% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.20  10 0 1439 0.28 63% 48% 35% 62%
fannkuch-redux  #4 0.81  11 1,748 1439 3.14 93% 98% 100% 99%
fannkuch-redux  #4 10.64  12 1,900 1439 41.77 95% 100% 98% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.17  10 0 1150 0.10 0% 18% 56% 17%
fannkuch-redux  #7 1.09  11 520 1150 1.09 0% 1% 2% 100%
fannkuch-redux  #7 14.15  12 596 1150 14.15 1% 0% 1% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.26  10 0 980 0.23 31% 19% 23% 81%
fannkuch-redux  #5 0.60  11 1,700 980 2.33 95% 98% 100% 100%
fannkuch-redux  #5 7.92  12 1,700 980 30.84 100% 99% 98% 93%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.34  10 528 593 0.26 6% 79% 6% 15%
fannkuch-redux  #3 3.07  11 596 593 3.07 1% 3% 100% 1%
fannkuch-redux  #3 40.54  12 596 593 40.54 100% 1% 1% 2%
source secs N mem gz cpu cpu load
fasta  0.18  250,000 0 1057 0.03 16% 53% 18% 37%
fasta  0.23  2,500,000 668 1057 0.23 4% 100% 0% 0%
fasta  2.06  25,000,000 1,608 1057 2.06 100% 2% 1% 0%
source secs N mem gz cpu cpu load
fasta  #6 0.18  250,000 0 2324 0.07 16% 39% 11% 69%
fasta  #6 0.12  2,500,000 0 2324 0.45 100% 92% 92% 100%
fasta  #6 1.05  25,000,000 4,528 2324 4.03 96% 96% 97% 97%
source secs N mem gz cpu cpu load
fasta  #7 0.20  250,000 0 2711 0.05 24% 5% 70% 25%
fasta  #7 0.11  2,500,000 0 2711 0.35 90% 89% 90% 92%
fasta  #7 0.85  25,000,000 2,020 2711 3.14 92% 92% 92% 93%
source secs N mem gz cpu cpu load
fasta  #2 0.18  250,000 0 1127 0.03 28% 33% 6% 0%
fasta  #2 0.23  2,500,000 668 1127 0.23 4% 96% 8% 0%
fasta  #2 2.07  25,000,000 1,608 1127 2.07 100% 1% 0% 0%
source secs N mem gz cpu cpu load
fasta  #4 0.13  250,000 0 1287 0.04 0% 23% 33% 67%
fasta  #4 0.35  2,500,000 528 1287 0.35 3% 100% 3% 0%
fasta  #4 3.31  25,000,000 596 1287 3.30 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #5 0.13  250,000 0 2344 0.06 15% 8% 57% 29%
fasta  #5 0.12  2,500,000 0 2344 0.43 91% 91% 92% 92%
fasta  #5 1.04  25,000,000 4,548 2344 3.89 93% 94% 94% 93%
source secs N mem gz cpu cpu load
fasta  #3 0.19  250,000 0 1307 0.04 0% 40% 48% 26%
fasta  #3 0.29  2,500,000 716 1307 0.29 100% 3% 3% 0%
fasta  #3 2.62  25,000,000 1,612 1307 2.62 0% 0% 0% 100%
source secs N mem gz cpu cpu load
k-nucleotide  0.27  250,000 0 1446 0.25 4% 30% 56% 31%
k-nucleotide  1.22  2,500,000 60,988 1446 1.70 65% 48% 61% 7%
k-nucleotide  7.01  25,000,000 756,268 1446 14.64 93% 90% 9% 18%
source secs N mem gz cpu cpu load
k-nucleotide  #2 0.31  250,000 320 1631 0.25 39% 10% 16% 45%
k-nucleotide  #2 0.60  2,500,000 9,624 1631 0.81 32% 34% 43% 29%
k-nucleotide  #2 1.98  25,000,000 156,108 1631 5.90 96% 67% 68% 68%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.34  250,000 328 1276 0.38 35% 58% 30% 21%
k-nucleotide  #3 0.78  2,500,000 17,084 1276 1.71 53% 50% 73% 51%
k-nucleotide  #3 4.30  25,000,000 165,844 1276 14.31 80% 97% 78% 79%
source secs N mem gz cpu cpu load
mandelbrot  0.17  1,000 0 3542 0.03 41% 18% 40% 24%
mandelbrot  0.07  4,000 0 3542 0.23 86% 100% 86% 86%
mandelbrot  0.88  16,000 34,608 3542 3.45 98% 100% 98% 97%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.20  1,000 0 726 0.08 55% 33% 10% 50%
mandelbrot  #9 0.24  4,000 796 726 0.88 92% 92% 96% 92%
mandelbrot  #9 3.50  16,000 34,408 726 13.51 96% 100% 95% 95%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.15  1,000 0 3095 0.03 0% 33% 20% 50%
mandelbrot  #4 0.07  4,000 0 3095 0.25 100% 100% 86% 86%
mandelbrot  #4 0.95  16,000 34,620 3095 3.69 99% 100% 98% 97%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.15  1,000 0 1017 0.08 15% 40% 13% 47%
mandelbrot  #7 0.23  4,000 756 1017 0.89 100% 100% 100% 100%
mandelbrot  #7 3.47  16,000 34,680 1017 13.80 99% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.16  1,000 0 742 0.09 7% 20% 44% 27%
mandelbrot  #8 0.32  4,000 788 742 0.88 97% 38% 100% 40%
mandelbrot  #8 4.94  16,000 34,472 742 13.54 38% 38% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  0.17  1,000 0 1791 0.04 33% 39% 28% 24%
mandelbrot  0.07  4,000 0 1791 0.24 100% 86% 100% 100%
mandelbrot  0.89  16,000 23,092 1791 3.45 97% 98% 98% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.17  1,000 0 1002 0.04 18% 35% 6% 69%
mandelbrot  #6 0.07  4,000 0 1002 0.27 88% 100% 100% 88%
mandelbrot  #6 0.97  16,000 22,168 1002 3.83 99% 99% 99% 99%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.31  1,000 288 414 0.12 17% 3% 26% 60%
mandelbrot  #3 1.80  4,000 1,472 414 1.80 100% 1% 1% 1%
mandelbrot  #3 28.41  16,000 1,608 414 28.40 0% 10% 0% 91%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.23  1,000 0 692 0.08 23% 43% 26% 9%
mandelbrot  #2 1.11  4,000 5,100 692 1.10 3% 1% 3% 100%
mandelbrot  #2 17.27  16,000 34,424 692 17.27 0% 100% 0% 0%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.21  1,000 0 590 0.07 33% 30% 5% 43%
mandelbrot  #5 0.86  4,000 4,204 590 0.86 3% 0% 1% 100%
mandelbrot  #5 13.32  16,000 33,572 590 13.31 0% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  0.18  500,000 0 1659 0.07 44% 33% 5% 24%
n-body  0.60  5,000,000 920 1659 0.60 2% 0% 0% 100%
n-body  5.91  50,000,000 920 1659 5.90 0% 1% 2% 100%
source secs N mem gz cpu cpu load
n-body  #8 0.15  500,000 0 1765 0.05 0% 7% 50% 40%
n-body  #8 0.40  5,000,000 860 1765 0.40 100% 0% 10% 0%
n-body  #8 3.94  50,000,000 924 1765 3.94 1% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #5 0.20  500,000 0 1749 0.07 0% 21% 21% 42%
n-body  #5 0.61  5,000,000 1,608 1749 0.60 100% 0% 5% 0%
n-body  #5 5.77  50,000,000 1,608 1749 5.77 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.20  500,000 0 1879 0.05 0% 53% 60% 37%
n-body  #2 0.41  5,000,000 1,608 1879 0.41 100% 26% 7% 2%
n-body  #2 4.02  50,000,000 1,608 1879 4.02 1% 0% 100% 2%
source secs N mem gz cpu cpu load
n-body  #7 0.18  500,000 0 1808 0.05 6% 41% 50% 0%
n-body  #7 0.40  5,000,000 696 1808 0.40 7% 0% 0% 100%
n-body  #7 3.94  50,000,000 1,604 1808 3.94 0% 1% 100% 1%
source secs N mem gz cpu cpu load
n-body  #3 0.20  500,000 0 1763 0.05 33% 48% 15% 0%
n-body  #3 0.41  5,000,000 1,544 1763 0.41 5% 100% 0% 5%
n-body  #3 3.99  50,000,000 1,604 1763 3.99 100% 1% 1% 1%
source secs N mem gz cpu cpu load
n-body  #9 0.16  500,000 0 1773 0.05 13% 0% 53% 44%
n-body  #9 0.42  5,000,000 860 1773 0.41 2% 0% 0% 100%
n-body  #9 4.05  50,000,000 920 1773 4.05 0% 100% 0% 1%
source secs N mem gz cpu cpu load
n-body  #6 0.21  500,000 0 1668 0.06 0% 43% 24% 45%
n-body  #6 0.58  5,000,000 856 1668 0.58 2% 100% 2% 2%
n-body  #6 5.67  50,000,000 924 1668 5.67 0% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.14  500,000 0 1428 0.06 33% 53% 0% 8%
n-body  #4 0.58  5,000,000 596 1428 0.58 0% 5% 0% 98%
n-body  #4 5.69  50,000,000 596 1428 5.69 100% 2% 2% 1%
source secs N mem gz cpu cpu load
pidigits  #4 0.22  2,000 0 513 0.04 27% 27% 48% 0%
pidigits  #4 0.31  6,000 704 513 0.31 0% 100% 0% 3%
pidigits  #4 0.89  10,000 4,236 513 0.88 0% 0% 100% 0%
source secs N mem gz cpu cpu load
regex-redux  #5 0.18  50,000 0 852 0.08 6% 47% 6% 29%
regex-redux  #5 0.40  500,000 772 852 0.62 25% 79% 20% 41%
regex-redux  #5 3.71  5,000,000 214,572 852 6.01 90% 20% 30% 21%
source secs N mem gz cpu cpu load
regex-redux  #6 0.21  50,000 0 2850 0.05 33% 29% 41% 10%
regex-redux  #6 0.16  500,000 0 2850 0.24 24% 65% 24% 56%
regex-redux  #6 1.03  5,000,000 275,752 2850 2.18 36% 37% 100% 40%
source secs N mem gz cpu cpu load
regex-redux  #2 0.23  50,000 0 700 0.09 42% 14% 43% 18%
regex-redux  #2 0.40  500,000 812 700 0.60 63% 74% 21% 3%
regex-redux  #2 3.41  5,000,000 198,876 700 5.82 0% 0% 86% 86%
source secs N mem gz cpu cpu load
regex-redux  #3 0.37  50,000 8 853 0.23 68% 17% 5% 23%
regex-redux  #3 1.41  500,000 33,200 853 1.96 99% 13% 43% 5%
regex-redux  #3 13.25  5,000,000 216,596 853 19.06 1% 44% 0% 100%
source secs N mem gz cpu cpu load
regex-redux  #4 0.21  50,000 0 1315 0.08 35% 33% 20% 10%
regex-redux  #4 0.18  500,000 0 1315 0.37 44% 84% 53% 55%
regex-redux  #4 1.09  5,000,000 203,840 1315 3.39 63% 71% 99% 78%
source secs N mem gz cpu cpu load
regex-redux  0.21  50,000 0 656 0.07 25% 0% 45% 0%
regex-redux  0.63  500,000 23,588 656 0.59 0% 97% 2% 5%
regex-redux  5.80  5,000,000 194,692 656 5.80 1% 0% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  0.19  250,000 0 592 0.03 37% 0% 10% 47%
reverse-complement  6.21  100,000,000 979,956 592 6.21 0% 0% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.26  250,000 0 720 0.10 15% 4% 19% 52%
reverse-complement  #5 33.92  100,000,000 491,752 720 33.92 0% 0% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.17  250,000 0 840 0.02 25% 0% 20% 0%
reverse-complement  #3 2.49  100,000,000 500,064 840 2.48 0% 0% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.19  250,000 0 2093 0.01 0% 32% 0% 28%
reverse-complement  #2 0.63  100,000,000 499,668 2093 0.63 2% 0% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.19  250,000 0 1832 0.03 16% 26% 0% 12%
reverse-complement  #6 2.86  100,000,000 1,383,728 1832 3.85 33% 14% 66% 22%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.12  500 0 1044 0.05 45% 33% 25% 25%
spectral-norm  #6 0.22  3,000 956 1044 0.86 96% 100% 100% 100%
spectral-norm  #6 0.72  5,500 2,348 1044 2.84 100% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.17  500 0 1044 0.08 31% 18% 25% 13%
spectral-norm  #5 0.41  3,000 3,276 1044 1.60 98% 98% 100% 100%
spectral-norm  #5 1.33  5,500 3,296 1044 5.27 100% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.16  500 0 1278 0.07 22% 25% 44% 53%
spectral-norm  #8 0.47  3,000 956 1278 1.84 100% 98% 98% 100%
spectral-norm  #8 1.53  5,500 2,356 1278 6.08 99% 100% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.20  500 0 452 0.05 19% 55% 26% 15%
spectral-norm  1.62  3,000 3,244 452 1.62 0% 100% 1% 2%
spectral-norm  5.43  5,500 3,180 452 5.43 100% 1% 1% 0%