OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
Do the C GNU gcc programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the C GNU gcc programs use a fraction of the time used by other programs or do they use several times more?
| C GNU gcc used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Programs | Time | Memory | Code | Reduced N |
| ↓ binary-trees | 1/5 | 1/2 | ± | |
| ↓ fannkuch | ± | 1/2 | ± | |
| ↓ sum-file | ± | 1/3 | ± | |
| ↓ k-nucleotide | ± | 4× | ± | |
| ↓ reverse-complement | ± | ± | ± | |
| ↓ recursive | ± | 1/2 | ± | |
| ↓ nsieve | ± | ± | ± | |
| ↓ nsieve-bits | ± | ± | ± | |
| ↓ pidigits | ± | 1/2 | ± | |
| ↓ partial-sums | ± | 1/2 | ± | |
| ↓ n-body | ± | 1/2 | ± | |
| ↓ mandelbrot | ± | 1/2 | 1/2 | |
| ↓ fasta | ± | 1/2 | ± | |
| ↓ regex-dna | ± | ± | ± | |
| ↓ spectral-norm | ± | 1/2 | ± | |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| binary-trees | |||||
| C GNU gcc | 0.85 | 3,900 | 758 | ||
| C++ GNU g++ | 4.47 | 6,996 | 541 | ||
| fannkuch | |||||
| C GNU gcc | 5.87 | 392 | 628 | ||
| C++ GNU g++ | 7.78 | 844 | 554 | ||
| sum-file | |||||
| C GNU gcc | 5.26 | 320 | 205 | ||
| C++ GNU g++ | 6.47 | 852 | 260 | ||
| k-nucleotide | |||||
| C GNU gcc | 6.57 | 35,372 | 1175 | ||
| C++ GNU g++ | 7.46 | 9,304 | 1380 | ||
| reverse-complement | |||||
| C GNU gcc | 0.49 | 12,852 | 736 | ||
| C++ GNU g++ | 0.54 | 13,288 | 810 | ||
| recursive | |||||
| C GNU gcc | 2.36 | 432 | 547 | ||
| C++ GNU g++ | 2.40 | 1,008 | 566 | ||
| nsieve | |||||
| C GNU gcc | 2.07 | 5,320 | 321 | ||
| C++ GNU g++ | 2.08 | 5,764 | 313 | ||
| nsieve-bits | |||||
| C GNU gcc | 3.86 | 2,888 | 434 | ||
| C++ GNU g++ | 3.86 | 3,316 | 494 | ||
| pidigits | |||||
| C GNU gcc | 1.66 | 592 | 680 | ||
| C++ GNU g++ | 1.66 | 1,052 | 652 | ||
| partial-sums | |||||
| C GNU gcc | 4.06 | 352 | 718 | ||
| C++ GNU g++ | 4.05 | 852 | 531 | ||
| n-body | |||||
| C GNU gcc | 14.84 | 396 | 1173 | ||
| C++ GNU g++ | 14.62 | 932 | 1705 | ||
| mandelbrot | |||||
| C GNU gcc | 3.09 | 372 | 563 | ||
| C++ GNU g++ | 3.02 | 896 | 1097 | ||
| fasta | |||||
| C GNU gcc | 19.84 | 488 | 1268 | ||
| C++ GNU g++ | 18.72 | 788 | 1248 | ||
| regex-dna | |||||
| C GNU gcc | 6.09 | 13,360 | 1099 | ||
| C++ GNU g++ | 5.58 | 12,704 | 1588 | ||
| spectral-norm | |||||
| C GNU gcc | 26.85 | 428 | 382 | ||
| C++ GNU g++ | 23.84 | 900 | 442 | ||
| chameneos-redux | |||||
| C GNU gcc | |||||
gcc version 4.1.2 (Gentoo 4.1.2)
Online book: The C Book
Home Page: http://gcc.gnu.org/
Download: ftp://ftp.gnu.org/pub/gnu/gcc/