OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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 |
| n-body | ± | 1/3 | ± | |
| regex-dna | ± | ± | ± | |
| partial-sums | ± | 7× | ± | |
| nsieve | ± | ± | ± | |
| fasta | ± | ± | ± | |
| recursive | ± | 2× | ± | |
| pidigits | ± | ± | ± | |
| nsieve-bits | ± | ± | ± | |
| spectral-norm | ± | 1/6 | ± | |
| reverse-complement | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| k-nucleotide | ± | 1/4 | ± | |
| fannkuch | ± | 8× | ± | |
| sum-file | ± | ± | ± | |
| binary-trees | 4× | 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 |
|---|---|---|---|---|---|
| n-body | |||||
| C++ GNU g++ | 12.78 | 936 | 1705 | ||
| C GNU gcc | 15.40 | 3,100 | 1173 | ||
| regex-dna | |||||
| C++ GNU g++ | 6.45 | 13,408 | 1588 | ||
| C GNU gcc | 6.92 | 12,696 | 1099 | ||
| partial-sums | |||||
| C++ GNU g++ | 1.84 | 3,096 | 531 | ||
| C GNU gcc | 1.93 | 428 | 399 | ||
| nsieve | |||||
| C++ GNU g++ | 3.76 | 10,788 | 313 | ||
| C GNU gcc | 3.79 | 10,332 | 321 | ||
| fasta | |||||
| C++ GNU g++ | 11.69 | 3,120 | 1248 | ||
| C GNU gcc | 11.67 | 3,108 | 1221 | ||
| recursive | |||||
| C++ GNU g++ | 2.59 | 1,008 | 566 | ||
| C GNU gcc | 2.58 | 480 | 425 | ||
| pidigits | |||||
| C++ GNU g++ | 2.85 | 3,124 | 652 | ||
| C GNU gcc | 2.84 | 3,120 | 680 | ||
| nsieve-bits | |||||
| C++ GNU g++ | 2.80 | 3,328 | 494 | ||
| C GNU gcc | 2.78 | 3,092 | 434 | ||
| spectral-norm | |||||
| C++ GNU g++ | 17.49 | 3,092 | 442 | ||
| C GNU gcc | 17.30 | 18,488 | 382 | ||
| reverse-complement | |||||
| C++ GNU g++ | 0.63 | 13,288 | 810 | ||
| C GNU gcc | 0.58 | 12,732 | 728 | ||
| mandelbrot | |||||
| C++ GNU g++ | 3.00 | 3,312 | 584 | ||
| C GNU gcc | 2.75 | 3,272 | 400 | ||
| k-nucleotide | |||||
| C++ GNU g++ | 7.63 | 9,312 | 1380 | ||
| C GNU gcc | 6.57 | 35,380 | 1173 | ||
| fannkuch | |||||
| C++ GNU g++ | 8.28 | 3,096 | 554 | ||
| C GNU gcc | 6.07 | 384 | 628 | ||
| sum-file | |||||
| C++ GNU g++ | 6.29 | 14,864 | 260 | ||
| C GNU gcc | 4.61 | 14,852 | 196 | ||
| binary-trees | |||||
| C++ GNU g++ | 5.91 | 7,000 | 541 | ||
| C GNU gcc | 1.50 | 4,504 | 743 | ||
| chameneos-redux | |||||
C++ 1991-2006, Bjarne Stroustrup (pdf)
g++ (GCC) 4.2.3 (Debian 4.2.3-1)
Home Page: http://gcc.gnu.org/
Download: ftp://ftp.gnu.org/pub/gnu/gcc/