x64 Ubuntu : Intel® Q6600® one core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest C++ GNU g++ program used compared to the fastest C GNU gcc program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest C++ GNU g++ program used compared to the fastest C GNU gcc program.
| C++ GNU g++ used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| k-nucleotide | 1/7 | 1/12 | 3× | |
| chameneos-redux | 1/3 | 2× | 1/2 | |
| fasta | 1/3 | 2× | ± | |
| regex-dna | 1/2 | ± | ± | |
| reverse-complement | ± | 2× | 3× | |
| fannkuch | ± | 2× | ± | |
| spectral-norm | ± | 2× | ± | |
| pidigits | ± | 2× | ± | |
| n-body | ± | 2× | ± | |
| mandelbrot | ± | ± | ± | |
| binary-trees | ± | 2× | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
For each named benchmark, measurements of the fastest C++ GNU g++ program are shown for comparison against measurements of the fastest C GNU gcc program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| k-nucleotide | |||||
| C++ GNU g++ | 11.41 | 11.41 | 142,264 | 3415 | 0% 0% 0% 100% |
| C GNU gcc | 78.50 | 78.50 | 1,682,764 | 1141 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| C++ GNU g++ | 3.39 | 3.39 | 1,396 | 1606 | 0% 0% 0% 100% |
| C GNU gcc | 9.24 | 9.24 | 652 | 2879 | 0% 0% 0% 100% |
| fasta | |||||
| C++ GNU g++ | 2.26 | 2.26 | 964 | 1470 | 1% 1% 0% 100% |
| C GNU gcc | 5.73 | 5.73 | 472 | 1221 | 0% 0% 0% 100% |
| regex-dna | |||||
| C++ GNU g++ | 12.64 | 12.64 | 100,436 | 1759 | 0% 0% 0% 100% |
| C GNU gcc | 24.47 | 24.47 | 83,264 | 1525 | 0% 0% 0% 100% |
| reverse-complement | |||||
| C++ GNU g++ | 1.03 | 1.03 | 245,640 | 2275 | 1% 0% 1% 100% |
| C GNU gcc | 1.43 | 1.43 | 125,272 | 722 | 0% 0% 0% 100% |
| fannkuch | |||||
| C++ GNU g++ | 50.34 | 50.34 | 1,260 | 1186 | 0% 0% 0% 100% |
| C GNU gcc | 51.38 | 51.37 | 692 | 937 | 0% 0% 0% 100% |
| spectral-norm | |||||
| C++ GNU g++ | 11.90 | 11.89 | 1,156 | 1114 | 0% 0% 0% 100% |
| C GNU gcc | 11.89 | 11.89 | 732 | 1139 | 0% 0% 0% 100% |
| pidigits | |||||
| C++ GNU g++ | 3.79 | 3.79 | 1,696 | 682 | 0% 0% 1% 100% |
| C GNU gcc | 3.79 | 3.79 | 1,124 | 541 | 0% 0% 0% 100% |
| n-body | |||||
| C++ GNU g++ | 20.57 | 20.56 | 932 | 1428 | 0% 0% 0% 100% |
| C GNU gcc | 20.37 | 20.37 | 488 | 1173 | 0% 0% 0% 100% |
| mandelbrot | |||||
| C++ GNU g++ | 25.03 | 25.03 | 31,448 | 858 | 0% 0% 0% 100% |
| C GNU gcc | 24.09 | 24.09 | 30,420 | 879 | 0% 0% 0% 100% |
| binary-trees | |||||
| C++ GNU g++ | 16.52 | 16.51 | 296,208 | 892 | 0% 1% 0% 100% |
| C GNU gcc | 13.83 | 13.84 | 149,588 | 850 | 1% 2% 1% 100% |
C++ 1991-2006, Bjarne Stroustrup (pdf)
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
Home Page: http://gcc.gnu.org/
Download: ftp://ftp.gnu.org/pub/gnu/gcc/