Ubuntu : Intel® Q6600® quad-core |
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 |
| ↓ mandelbrot | 1/1,915 | 17× | 3× | |
| ↓ spectral-norm | 1/750 | 1/4 | 4× | |
| ↓ fannkuch | 1/526 | 1/3 | 3× | |
| ↓ binary-trees | 1/210 | 1/5 | 2× | |
| ↓ chameneos-redux | 1/182 | 1/3 | 3× | |
| ↓ n-body | 1/169 | 1/4 | ± | |
| ↓ fasta | 1/121 | 1/621 | 2× | |
| ↓ pidigits | 1/20 | 1/14 | ± | |
| ↓ k-nucleotide | 1/16 | 5× | 3× | |
| ↓ reverse-complement | 1/7 | 1/2 | 3× | |
| ↓ regex-dna | 1/2 | 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 |
|---|---|---|---|---|---|
| mandelbrot | |||||
| C GNU gcc | 24.38 | 6.11 | 27,248 | 879 | 100% 100% 100% 100% |
| Ruby MRI | 11,695.70 | 11,694.96 | 1,568 | 313 | 0% 100% 0% 0% |
| spectral-norm | |||||
| C GNU gcc | 12.00 | 3.00 | 688 | 1139 | 100% 100% 100% 100% |
| Ruby MRI | 2,251.47 | 2,251.33 | 2,676 | 292 | 0% 0% 0% 100% |
| fannkuch | |||||
| C GNU gcc | 50.54 | 12.88 | 552 | 937 | 98% 100% 98% 98% |
| Ruby MRI | 6,779.96 | 6,779.55 | 1,888 | 340 | 0% 100% 0% 0% |
| binary-trees | |||||
| C GNU gcc | 13.71 | 5.10 | 100,688 | 850 | 50% 34% 85% 81% |
| Ruby MRI | 1,070.44 | 1,070.38 | 457,788 | 412 | 1% 100% 1% 1% |
| chameneos-redux | |||||
| C GNU gcc | 2.84 | 0.72 | 580 | 2879 | 100% 97% 99% 100% |
| Ruby MRI | 131.29 | 131.28 | 1,956 | 928 | 100% 0% 0% 0% |
| n-body | |||||
| C GNU gcc | 23.52 | 23.52 | 416 | 1429 | 100% 0% 0% 0% |
| Ruby MRI | 3,982.80 | 3,982.55 | 1,652 | 1137 | 0% 100% 0% 0% |
| fasta | |||||
| C GNU gcc | 5.18 | 5.19 | 396 | 1221 | 100% 0% 0% 0% |
| Ruby MRI | 630.13 | 630.12 | 245,868 | 732 | 0% 41% 1% 58% |
| pidigits | |||||
| C GNU gcc | 2.71 | 2.71 | 1,012 | 541 | 0% 100% 0% 0% |
| Ruby MRI | 53.81 | 53.81 | 13,924 | 518 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| C GNU gcc | 53.96 | 53.96 | 802,928 | 1141 | 0% 0% 0% 100% |
| Ruby MRI | 843.59 | 843.54 | 147,980 | 420 | 0% 0% 0% 100% |
| reverse-complement | |||||
| C GNU gcc | 1.37 | 1.37 | 125,192 | 722 | 100% 1% 1% 1% |
| Ruby MRI | 10.09 | 10.09 | 197,348 | 255 | 0% 98% 0% 0% |
| regex-dna | |||||
| C GNU gcc | 32.17 | 32.17 | 124,696 | 1099 | 0% 0% 100% 0% |
| Ruby MRI | 58.39 | 58.39 | 254,336 | 323 | 0% 0% 0% 100% |
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
Online book: The C Book
Home Page: http://gcc.gnu.org/
Download: ftp://ftp.gnu.org/pub/gnu/gcc/