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 |
| ↓ recursive | 1/290 | 1/33 | 2× | |
| ↓ n-body | 1/136 | 1/6 | ± | |
| ↓ fannkuch | 1/132 | 1/6 | 2× | |
| ↓ binary-trees | 1/110 | 1/4 | 2× | |
| ↓ mandelbrot | 1/105 | 1/7 | 2× | |
| ↓ nsieve-bits | 1/37 | 1/4 | 2× | |
| ↓ fasta | 1/35 | 1/5 | 2× | |
| ↓ k-nucleotide | 1/9 | ± | 2× | |
| ↓ partial-sums | 1/7 | 1/7 | 2× | |
| ↓ reverse-complement | 1/6 | 1/4 | 3× | |
| ↓ nsieve | 1/4 | 1/7 | ± | |
| ↓ sum-file | 1/4 | 1/8 | 3× | |
| ↓ pidigits | ± | 1/5 | ± | |
| ↓ regex-dna | ± | 1/2 | 3× | |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| recursive | |||||
| C GNU gcc | 2.36 | 432 | 547 | ||
| Python CPython | 683.74 | 14,296 | 360 | ||
| n-body | |||||
| C GNU gcc | 14.84 | 396 | 1173 | ||
| Python CPython | 2,015.78 | 2,440 | 1027 | ||
| fannkuch | |||||
| C GNU gcc | 5.87 | 392 | 628 | ||
| Python CPython | 772.84 | 2,404 | 411 | ||
| binary-trees | |||||
| C GNU gcc | 0.85 | 3,900 | 758 | ||
| Python CPython | 93.41 | 16,116 | 418 | ||
| mandelbrot | |||||
| C GNU gcc | 3.09 | 372 | 563 | ||
| Python CPython | 323.70 | 2,420 | 303 | ||
| nsieve-bits | |||||
| C GNU gcc | 3.86 | 2,888 | 434 | ||
| Python CPython | 144.40 | 12,436 | 288 | ||
| fasta | |||||
| C GNU gcc | 19.84 | 488 | 1268 | ||
| Python CPython | 692.04 | 2,420 | 779 | ||
| k-nucleotide | |||||
| C GNU gcc | 6.57 | 35,372 | 1175 | ||
| Python CPython | 58.45 | 25,208 | 475 | ||
| partial-sums | |||||
| C GNU gcc | 4.06 | 352 | 718 | ||
| Python CPython | 27.41 | 2,476 | 395 | ||
| reverse-complement | |||||
| C GNU gcc | 0.49 | 12,852 | 736 | ||
| Python CPython | 2.73 | 49,072 | 288 | ||
| nsieve | |||||
| C GNU gcc | 2.07 | 5,320 | 321 | ||
| Python CPython | 8.57 | 35,220 | 246 | ||
| sum-file | |||||
| C GNU gcc | 5.26 | 320 | 205 | ||
| Python CPython | 20.75 | 2,444 | 77 | ||
| pidigits | |||||
| C GNU gcc | 1.66 | 592 | 680 | ||
| Python CPython | 2.06 | 2,928 | 476 | ||
| regex-dna | |||||
| C GNU gcc | 6.09 | 13,360 | 1099 | ||
| Python CPython | 6.04 | 20,516 | 342 | ||
| chameneos-redux | |||||
| C GNU gcc | |||||
| spectral-norm | |||||
| C GNU gcc | 26.85 | 428 | 382 | ||
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/