The Computer Language
Benchmarks Game

all C++ g++ programs & measurements

g++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008

source secs N mem gz cpu cpu load
binary-trees  #3 0.31  7 8 945 0.01 60% 3% 0% 65%
binary-trees  #3 0.03  14 0 945 0.07 50% 67% 67% 100%
binary-trees  #3 5.78  21 221,804 945 16.59 39% 83% 77% 90%
source secs N mem gz cpu cpu load
binary-trees  #6 0.34  7 8 844 0.02 11% 27% 17% 48%
binary-trees  #6 0.03  14 0 844 0.08 67% 75% 100% 50%
binary-trees  #6 5.76  21 221,924 844 16.61 84% 40% 90% 78%
source secs N mem gz cpu cpu load
binary-trees  0.26  7 0 754 0.01 38% 4% 0% 54%
binary-trees  0.04  14 0 754 0.09 80% 67% 50% 67%
binary-trees  8.90  21 2,049,812 754 32.64 92% 97% 91% 91%
source secs N mem gz cpu cpu load
binary-trees  #9 0.34  7 8 809 0.02 26% 3% 11% 60%
binary-trees  #9 0.04  14 0 809 0.09 50% 67% 75% 100%
binary-trees  #9 3.93  21 113,768 809 12.71 70% 81% 75% 98%
source secs N mem gz cpu cpu load
binary-trees  #8 0.39  7 8 820 0.02 68% 0% 5% 42%
binary-trees  #8 0.04  14 0 820 0.09 33% 60% 75% 100%
binary-trees  #8 6.32  21 221,912 820 16.65 90% 65% 63% 47%
source secs N mem gz cpu cpu load
binary-trees  #2 0.30  7 8 508 0.01 67% 21% 6% 43%
binary-trees  #2 0.18  14 0 508 0.18 0% 0% 6% 100%
binary-trees  #2 38.33  21 265,060 508 38.30 36% 1% 1% 64%
source secs N mem gz cpu cpu load
fannkuch-redux  #5 0.42  10 8 980 0.29 24% 76% 73% 18%
fannkuch-redux  #5 0.83  11 1,808 980 3.23 100% 95% 99% 98%
fannkuch-redux  #5 10.70  12 1,864 980 42.23 96% 100% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #7 0.33  10 8 1150 0.18 6% 6% 23% 73%
fannkuch-redux  #7 2.08  11 764 1150 2.07 6% 100% 0% 0%
fannkuch-redux  #7 26.55  12 824 1150 26.54 2% 100% 0% 1%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.53  10 772 593 0.42 15% 2% 4% 85%
fannkuch-redux  #3 5.24  11 712 593 5.24 100% 0% 0% 1%
fannkuch-redux  #3 71.91  12 780 593 71.89 76% 0% 0% 24%
source secs N mem gz cpu cpu load
fannkuch-redux  0.68  10 8 1059 0.43 78% 16% 19% 82%
fannkuch-redux  1.34  11 1,796 1059 5.20 99% 98% 93% 100%
fannkuch-redux  18.22  12 1,900 1059 70.95 99% 94% 97% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 0.45  10 8 1440 0.39 22% 77% 82% 23%
fannkuch-redux  #2 1.26  11 1,848 1440 4.87 98% 92% 99% 99%
fannkuch-redux  #2 17.24  12 2,128 1440 67.39 99% 100% 99% 93%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 0.38  10 8 1439 0.37 26% 47% 63% 23%
fannkuch-redux  #4 1.19  11 1,992 1439 4.55 100% 97% 97% 91%
fannkuch-redux  #4 16.05  12 2,040 1439 62.79 100% 93% 100% 98%
source secs N mem gz cpu cpu load
fasta  #4 0.22  250,000 0 1287 0.07 0% 64% 73% 0%
fasta  #4 0.68  2,500,000 712 1287 0.68 33% 1% 6% 100%
fasta  #4 6.34  25,000,000 828 1287 6.34 0% 0% 100% 0%
source secs N mem gz cpu cpu load
fasta  0.41  250,000 8 1057 0.07 39% 2% 19% 62%
fasta  0.63  2,500,000 1,756 1057 0.63 2% 0% 100% 2%
fasta  5.85  25,000,000 1,760 1057 5.84 1% 100% 0% 1%
source secs N mem gz cpu cpu load
fasta  #6 0.45  250,000 8 2324 0.08 79% 13% 5% 61%
fasta  #6 0.20  2,500,000 0 2324 0.64 82% 81% 85% 81%
fasta  #6 1.74  25,000,000 4,472 2324 5.69 82% 82% 82% 82%
source secs N mem gz cpu cpu load
fasta  #5 0.48  250,000 8 2344 0.09 67% 4% 8% 73%
fasta  #5 0.19  2,500,000 0 2344 0.61 81% 74% 82% 83%
fasta  #5 1.75  25,000,000 4,516 2344 5.44 79% 78% 78% 78%
source secs N mem gz cpu cpu load
fasta  #2 0.29  250,000 0 1127 0.05 31% 0% 0% 57%
fasta  #2 0.46  2,500,000 1,768 1127 0.46 36% 2% 100% 17%
fasta  #2 4.10  25,000,000 1,760 1127 4.10 1% 1% 100% 0%
source secs N mem gz cpu cpu load
fasta  #7 0.65  250,000 328 2711 0.07 50% 24% 6% 77%
fasta  #7 0.17  2,500,000 0 2711 0.49 68% 81% 71% 76%
fasta  #7 1.46  25,000,000 2,180 2711 4.37 75% 75% 75% 75%
source secs N mem gz cpu cpu load
fasta  #3 0.27  250,000 0 1307 0.06 32% 0% 0% 56%
fasta  #3 0.47  2,500,000 1,648 1307 0.47 4% 0% 100% 0%
fasta  #3 4.15  25,000,000 1,756 1307 4.14 1% 100% 0% 0%
source secs N mem gz cpu cpu load
k-nucleotide  #3 0.92  250,000 34,516 1276 0.72 14% 70% 80% 15%
k-nucleotide  #3 1.33  2,500,000 55,328 1276 2.96 52% 98% 50% 50%
k-nucleotide  #3 7.61  25,000,000 165,776 1276 24.93 78% 76% 98% 78%
source secs N mem gz cpu cpu load
k-nucleotide  0.59  250,000 3,480 1446 0.48 36% 39% 44% 28%
k-nucleotide  1.65  2,500,000 96,960 1446 2.66 75% 14% 70% 21%
k-nucleotide  11.75  25,000,000 756,276 1446 24.78 52% 13% 88% 60%
source secs N mem gz cpu cpu load
k-nucleotide  #2 0.63  250,000 1,732 1631 0.42 66% 8% 8% 42%
k-nucleotide  #2 0.98  2,500,000 25,528 1631 1.50 51% 30% 32% 55%
k-nucleotide  #2 3.89  25,000,000 156,148 1631 11.94 94% 74% 70% 71%
source secs N mem gz cpu cpu load
mandelbrot  #4 0.38  1,000 8 3095 0.04 58% 37% 8% 49%
mandelbrot  #4 0.13  4,000 0 3095 0.46 92% 92% 92% 100%
mandelbrot  #4 1.78  16,000 34,656 3095 6.96 97% 98% 98% 99%
source secs N mem gz cpu cpu load
mandelbrot  0.30  1,000 0 1791 0.05 67% 3% 3% 45%
mandelbrot  0.11  4,000 0 1791 0.40 100% 90% 100% 91%
mandelbrot  1.51  16,000 25,708 1791 5.99 99% 99% 99% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.38  1,000 8 590 0.10 5% 76% 58% 0%
mandelbrot  #5 1.49  4,000 4,216 590 1.49 13% 2% 0% 100%
mandelbrot  #5 23.36  16,000 33,616 590 23.35 100% 0% 1% 0%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.52  1,000 1,752 414 0.22 72% 0% 4% 31%
mandelbrot  #3 3.40  4,000 1,704 414 3.40 2% 4% 100% 5%
mandelbrot  #3 54.02  16,000 1,752 414 54.00 0% 1% 2% 100%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.39  1,000 8 1017 0.12 31% 58% 24% 36%
mandelbrot  #7 0.40  4,000 808 1017 1.55 100% 98% 97% 100%
mandelbrot  #7 6.09  16,000 34,604 1017 24.23 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #2 0.43  1,000 8 692 0.12 62% 7% 5% 40%
mandelbrot  #2 1.87  4,000 4,728 692 1.87 1% 100% 0% 2%
mandelbrot  #2 29.58  16,000 34,480 692 29.57 1% 1% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #9 0.37  1,000 8 726 0.11 50% 11% 10% 54%
mandelbrot  #9 0.36  4,000 760 726 1.31 97% 97% 91% 94%
mandelbrot  #9 5.33  16,000 34,464 726 20.47 95% 95% 99% 95%
source secs N mem gz cpu cpu load
mandelbrot  #8 0.41  1,000 8 742 0.12 56% 10% 7% 49%
mandelbrot  #8 0.52  4,000 4,960 742 1.39 38% 40% 100% 98%
mandelbrot  #8 8.03  16,000 34,384 742 21.84 53% 85% 36% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.37  1,000 8 1002 0.05 43% 5% 5% 51%
mandelbrot  #6 0.12  4,000 0 1002 0.47 100% 92% 92% 92%
mandelbrot  #6 1.82  16,000 28,996 1002 7.16 100% 98% 98% 98%
source secs N mem gz cpu cpu load
n-body  0.38  500,000 8 1659 0.20 5% 78% 50% 0%
n-body  1.98  5,000,000 1,048 1659 1.97 10% 100% 2% 3%
n-body  19.71  50,000,000 1,072 1659 19.70 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.40  500,000 8 1749 0.14 0% 55% 77% 5%
n-body  #5 1.34  5,000,000 1,732 1749 1.34 0% 2% 99% 1%
n-body  #5 13.29  50,000,000 1,804 1749 13.29 2% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #6 0.42  500,000 8 1668 0.20 2% 79% 54% 3%
n-body  #6 1.98  5,000,000 1,072 1668 1.98 100% 3% 3% 8%
n-body  #6 19.75  50,000,000 1,076 1668 19.75 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.38  500,000 8 1808 0.09 8% 34% 92% 0%
n-body  #7 0.82  5,000,000 1,752 1808 0.82 1% 100% 4% 0%
n-body  #7 8.07  50,000,000 1,756 1808 8.06 0% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #3 0.37  500,000 8 1763 0.09 49% 13% 5% 59%
n-body  #3 0.81  5,000,000 1,752 1763 0.81 17% 0% 2% 100%
n-body  #3 8.06  50,000,000 1,764 1763 8.05 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #2 0.35  500,000 8 1879 0.08 53% 3% 6% 56%
n-body  #2 0.88  5,000,000 1,688 1879 0.88 0% 3% 1% 100%
n-body  #2 7.70  50,000,000 1,772 1879 7.69 4% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #9 0.31  500,000 8 1773 0.08 6% 67% 61% 0%
n-body  #9 0.80  5,000,000 972 1773 0.80 2% 100% 1% 0%
n-body  #9 7.92  50,000,000 1,072 1773 7.92 1% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #8 0.32  500,000 8 1765 0.09 36% 11% 25% 53%
n-body  #8 0.82  5,000,000 1,076 1765 0.82 27% 26% 1% 99%
n-body  #8 8.05  50,000,000 1,092 1765 8.05 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.40  500,000 8 1428 0.24 40% 5% 0% 75%
n-body  #4 2.37  5,000,000 716 1428 2.37 5% 7% 0% 100%
n-body  #4 23.67  50,000,000 780 1428 23.67 0% 1% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.39  2,000 8 513 0.07 78% 0% 5% 31%
pidigits  #4 0.65  6,000 3,936 513 0.65 100% 4% 0% 2%
pidigits  #4 1.89  10,000 4,460 513 1.88 2% 0% 100% 1%
source secs N mem gz cpu cpu load
regex-redux  0.38  50,000 8 656 0.10 22% 5% 3% 51%
regex-redux  1.06  500,000 23,636 656 0.93 2% 99% 1% 0%
regex-redux  9.37  5,000,000 207,984 656 9.36 100% 0% 0% 1%
source secs N mem gz cpu cpu load
regex-redux  #2 0.37  50,000 8 700 0.12 54% 11% 6% 49%
regex-redux  #2 0.70  500,000 26,980 700 0.92 100% 48% 4% 1%
regex-redux  #2 6.00  5,000,000 184,056 700 9.18 2% 52% 17% 84%
source secs N mem gz cpu cpu load
regex-redux  #4 0.35  50,000 8 1315 0.08 34% 16% 6% 49%
regex-redux  #4 0.51  500,000 7,944 1315 0.47 96% 18% 20% 31%
regex-redux  #4 1.85  5,000,000 203,748 1315 4.41 48% 100% 43% 48%
source secs N mem gz cpu cpu load
regex-redux  #6 0.56  50,000 336 2850 0.06 68% 2% 5% 73%
regex-redux  #6 0.27  500,000 732 2850 0.39 27% 26% 30% 79%
regex-redux  #6 1.97  5,000,000 275,636 2850 3.65 31% 46% 84% 29%
source secs N mem gz cpu cpu load
regex-redux  #5 0.61  50,000 8 852 0.11 34% 43% 49% 18%
regex-redux  #5 0.77  500,000 26,344 852 0.94 13% 14% 36% 78%
regex-redux  #5 6.51  5,000,000 214,324 852 9.29 15% 15% 90% 24%
source secs N mem gz cpu cpu load
regex-redux  #3 0.81  50,000 3,608 853 0.30 38% 4% 2% 61%
regex-redux  #3 1.94  500,000 33,352 853 2.74 15% 47% 0% 95%
regex-redux  #3 18.11  5,000,000 215,500 853 27.01 0% 35% 15% 100%
source secs N mem gz cpu cpu load
reverse-complement  #5 0.43  250,000 8 720 0.16 20% 0% 5% 64%
reverse-complement  #5 47.45  100,000,000 750,100 720 47.43 0% 1% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.38  250,000 8 840 0.02 67% 0% 5% 41%
reverse-complement  #3 4.72  100,000,000 500,116 840 4.71 100% 0% 0% 0%
source secs N mem gz cpu cpu load
reverse-complement  1.05  250,000 3,180 592 0.04 1% 85% 84% 0%
reverse-complement  11.62  100,000,000 979,952 592 11.60 77% 1% 0% 23%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.38  250,000 8 1832 0.03 47% 18% 5% 46%
reverse-complement  #6 6.34  100,000,000 1,578,704 1832 8.79 20% 30% 1% 91%
source secs N mem gz cpu cpu load
spectral-norm  #6 0.26  500 0 1044 0.09 11% 62% 79% 8%
spectral-norm  #6 0.61  3,000 1,176 1044 2.37 98% 98% 98% 97%
spectral-norm  #6 1.98  5,500 2,320 1044 7.88 99% 100% 99% 100%
source secs N mem gz cpu cpu load
spectral-norm  #8 0.31  500 8 1278 0.14 87% 16% 13% 43%
spectral-norm  #8 1.02  3,000 1,228 1278 4.03 99% 99% 100% 100%
spectral-norm  #8 3.40  5,500 2,412 1278 13.52 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #5 0.66  500 8 1044 0.11 45% 32% 42% 52%
spectral-norm  #5 0.61  3,000 1,812 1044 2.38 98% 97% 98% 98%
spectral-norm  #5 2.00  5,500 3,220 1044 7.95 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.44  500 8 452 0.14 2% 79% 40% 5%
spectral-norm  4.79  3,000 3,060 452 4.79 100% 2% 1% 1%
spectral-norm  16.05  5,500 3,228 452 16.05 0% 1% 0% 100%