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/4 | 1/6 | 3× | |
| chameneos-redux | 1/3 | 2× | 1/2 | |
| regex-dna | 1/2 | ± | ± | |
| fasta | ± | 2× | ± | |
| reverse-complement | ± | 2× | 3× | |
| spectral-norm | ± | 2× | ± | |
| pidigits | ± | 2× | ± | |
| mandelbrot | ± | ± | ± | |
| n-body | ± | 2× | ± | |
| fannkuch | ± | 2× | ± | |
| binary-trees | ± | ± | ± | |
± 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++ | 13.61 | 13.61 | 132,864 | 3415 | 0% 0% 0% 100% |
| C GNU gcc | 53.84 | 53.83 | 843,132 | 1141 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| C++ GNU g++ | 4.02 | 4.02 | 1,244 | 1606 | 0% 0% 0% 100% |
| C GNU gcc | 10.48 | 10.48 | 556 | 2879 | 0% 0% 0% 100% |
| regex-dna | |||||
| C++ GNU g++ | 14.19 | 14.19 | 100,332 | 1759 | 0% 0% 0% 100% |
| C GNU gcc | 25.55 | 25.55 | 81,568 | 1525 | 0% 0% 0% 100% |
| fasta | |||||
| C++ GNU g++ | 3.76 | 3.77 | 816 | 1470 | 0% 0% 0% 100% |
| C GNU gcc | 5.19 | 5.19 | 396 | 1221 | 0% 0% 0% 100% |
| reverse-complement | |||||
| C++ GNU g++ | 1.12 | 1.12 | 245,432 | 2275 | 1% 0% 1% 100% |
| C GNU gcc | 1.38 | 1.38 | 125,188 | 722 | 0% 0% 2% 100% |
| spectral-norm | |||||
| C++ GNU g++ | 11.94 | 11.94 | 1,004 | 1114 | 0% 0% 1% 100% |
| C GNU gcc | 11.95 | 11.94 | 664 | 1139 | 0% 0% 0% 100% |
| pidigits | |||||
| C++ GNU g++ | 2.71 | 2.71 | 1,596 | 682 | 0% 0% 1% 100% |
| C GNU gcc | 2.71 | 2.71 | 1,008 | 541 | 0% 0% 0% 100% |
| mandelbrot | |||||
| C++ GNU g++ | 24.55 | 24.55 | 30,564 | 858 | 0% 0% 0% 100% |
| C GNU gcc | 24.35 | 24.35 | 30,048 | 879 | 0% 0% 0% 100% |
| n-body | |||||
| C++ GNU g++ | 23.81 | 23.81 | 788 | 1428 | 0% 1% 0% 100% |
| C GNU gcc | 23.52 | 23.52 | 416 | 1429 | 0% 0% 0% 100% |
| fannkuch | |||||
| C++ GNU g++ | 50.01 | 50.01 | 1,124 | 1186 | 0% 0% 0% 100% |
| C GNU gcc | 47.76 | 47.76 | 552 | 937 | 0% 0% 0% 100% |
| binary-trees | |||||
| C++ GNU g++ | 13.47 | 13.47 | 148,652 | 892 | 0% 0% 0% 100% |
| C GNU gcc | 12.23 | 12.23 | 99,528 | 850 | 0% 0% 0% 100% |
C++ 1991-2006, Bjarne Stroustrup (pdf)
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
Home Page: http://gcc.gnu.org/
Download: ftp://ftp.gnu.org/pub/gnu/gcc/