x64 Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C GNU gcc program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C GNU gcc program.
| Ada 2005 GNAT used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| k-nucleotide | 1/2 | ± | 2× | |
| reverse-complement | ± | 2× | 4× | |
| fannkuch | ± | 3× | 2× | |
| pidigits | ± | 2× | 2× | |
| mandelbrot | ± | ± | 2× | |
| n-body | ± | 3× | ± | |
| spectral-norm | 2× | 3× | ± | |
| fasta | 4× | 3× | ± | |
| binary-trees | 5× | ± | ± | |
| regex-dna | 6× | 1/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 ~ speed and size.
For each named benchmark, measurements of the fastest Ada 2005 GNAT 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 |
|---|---|---|---|---|---|
| k-nucleotide | |||||
| Ada 2005 GNAT | 35.11 | 11.99 | 256,660 | 4865 | 39% 78% 79% 96% |
| C GNU gcc | 58.56 | 18.66 | 294,064 | 2519 | 90% 75% 54% 95% |
| reverse-complement | |||||
| Ada 2005 GNAT | 1.08 | 0.94 | 197,816 | 3154 | 1% 34% 81% 1% |
| C GNU gcc | 1.31 | 1.31 | 112,788 | 722 | 1% 0% 100% 1% |
| fannkuch | |||||
| Ada 2005 GNAT | 38.17 | 10.60 | 2,060 | 1518 | 86% 99% 100% 77% |
| C GNU gcc | 49.63 | 13.48 | 644 | 937 | 99% 86% 84% 100% |
| pidigits | |||||
| Ada 2005 GNAT | 2.29 | 2.29 | 2,204 | 1254 | 0% 100% 0% 1% |
| C GNU gcc | 2.29 | 2.29 | 1,172 | 541 | 0% 100% 3% 1% |
| mandelbrot | |||||
| Ada 2005 GNAT | 22.18 | 6.07 | 33,640 | 1805 | 97% 93% 90% 88% |
| C GNU gcc | 24.09 | 6.07 | 27,696 | 879 | 100% 99% 99% 100% |
| n-body | |||||
| Ada 2005 GNAT | 24.31 | 24.31 | 1,520 | 1723 | 0% 0% 100% 0% |
| C GNU gcc | 23.06 | 23.06 | 476 | 1429 | 0% 100% 0% 0% |
| spectral-norm | |||||
| Ada 2005 GNAT | 15.94 | 5.97 | 2,480 | 1702 | 94% 60% 44% 67% |
| C GNU gcc | 11.51 | 2.97 | 772 | 1139 | 100% 99% 99% 91% |
| fasta | |||||
| Ada 2005 GNAT | 6.59 | 6.59 | 1,564 | 1623 | 1% 0% 0% 100% |
| C GNU gcc | 1.63 | 1.63 | 452 | 1321 | 0% 100% 0% 1% |
| binary-trees | |||||
| Ada 2005 GNAT | 37.11 | 37.12 | 198,136 | 955 | 0% 0% 0% 100% |
| C GNU gcc | 13.88 | 7.06 | 151,180 | 850 | 53% 83% 2% 50% |
| regex-dna | |||||
| Ada 2005 GNAT | 33.18 | 15.38 | 183,064 | 3334 | 52% 19% 83% 59% |
| C GNU gcc | 5.23 | 2.68 | 325,256 | 2579 | 20% 63% 67% 51% |
| chameneos-redux | |||||
| Ada 2005 GNAT | 1.14 | 0.74 | 2,236 | 1615 | 0% 62% 32% 65% |
Remember - those are just the fastest Ada 2005 GNAT and C GNU gcc programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ada 2005 GNAT.
Maybe one of those other Ada 2005 GNAT programs is fastest on a different OS/machine.
Remember - those are just the fastest Ada 2005 GNAT and C GNU gcc programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.
Maybe one of those other programs is fastest on a different OS/machine.
wikibook Ada Programming
GNAT 4.4.1
Home Page: The Libre Site
Download: Download GNAT GPL Edition