x64 Ubuntu : Intel® Q6600® quad-core |
Do the Ada 2005 GNAT programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Ada 2005 GNAT programs use a fraction of the time used by other programs or do they use several times more?
| Ada 2005 GNAT used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Programs | Time | Memory | Code | Reduced N |
| ↓ k-nucleotide | 1/7 | 1/7 | 4× | |
| ↓ regex-dna | 1/2 | ± | 3× | |
| ↓ reverse-complement | ± | 2× | 4× | |
| ↓ mandelbrot | ± | ± | 2× | |
| ↓ pidigits | ± | 2× | 2× | |
| ↓ fasta | ± | 3× | ± | |
| ↓ n-body | ± | 3× | ± | |
| ↓ spectral-norm | ± | 3× | ± | |
| ↓ binary-trees | 6× | ± | ± | |
| ↓ fannkuch | 7× | 2× | ± | |
| ↓ chameneos-redux | 46× | ± | 1/2 | 600,000 |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| k-nucleotide | |||||
| Ada 2005 GNAT | 27.89 | 11.89 | 256,692 | 4504 | 45% 75% 30% 84% |
| C GNU gcc | 78.17 | 78.17 | 1,702,416 | 1141 | 0% 0% 100% 0% |
| regex-dna | |||||
| Ada 2005 GNAT | 45.99 | 16.50 | 183,732 | 3334 | 79% 68% 61% 66% |
| C GNU gcc | 31.06 | 31.06 | 124,780 | 1099 | 100% 0% 0% 0% |
| reverse-complement | |||||
| Ada 2005 GNAT | 1.19 | 0.98 | 197,868 | 3132 | 41% 63% 21% 0% |
| C GNU gcc | 1.44 | 1.44 | 125,276 | 722 | 100% 0% 1% 0% |
| mandelbrot | |||||
| Ada 2005 GNAT | 22.79 | 5.76 | 33,284 | 1805 | 99% 99% 99% 99% |
| C GNU gcc | 24.23 | 6.07 | 27,900 | 879 | 100% 100% 100% 100% |
| pidigits | |||||
| Ada 2005 GNAT | 3.79 | 3.79 | 2,192 | 1254 | 0% 100% 0% 0% |
| C GNU gcc | 3.79 | 3.79 | 1,132 | 541 | 99% 0% 0% 0% |
| fasta | |||||
| Ada 2005 GNAT | 6.54 | 6.55 | 1,576 | 1623 | 0% 0% 0% 100% |
| C GNU gcc | 5.74 | 5.73 | 476 | 1221 | 0% 0% 100% 0% |
| n-body | |||||
| Ada 2005 GNAT | 24.11 | 24.10 | 1,540 | 1723 | 0% 0% 0% 100% |
| C GNU gcc | 20.37 | 20.37 | 516 | 1173 | 100% 0% 0% 0% |
| spectral-norm | |||||
| Ada 2005 GNAT | 15.69 | 3.98 | 2,528 | 1702 | 98% 99% 98% 99% |
| C GNU gcc | 11.87 | 2.99 | 772 | 1139 | 99% 100% 99% 99% |
| binary-trees | |||||
| Ada 2005 GNAT | 37.59 | 37.59 | 198,160 | 955 | 100% 0% 0% 0% |
| C GNU gcc | 15.04 | 6.30 | 151,220 | 850 | 42% 25% 84% 69% |
| fannkuch | |||||
| Ada 2005 GNAT | 91.65 | 91.65 | 1,500 | 746 | 100% 0% 0% 0% |
| C GNU gcc | 51.43 | 12.97 | 700 | 937 | 99% 99% 99% 100% |
| chameneos-redux N = 600,000 reduced workload | |||||
| Ada 2005 GNAT | 18.00 | 6.75 | 2,276 | 1615 | 59% 66% 58% 60% |
| C GNU gcc | 0.52 | 0.15 | ? | 2879 | 87% 93% 93% 86% |
wikibook Ada Programming
GNAT 4.3.3
Home Page: The Libre Site
Download: Download GNAT GPL Edition