x64 Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C++ GNU g++ program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C++ GNU g++ program.
| Ada 2005 GNAT used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| mandelbrot | ± | ± | 2× | |
| pidigits | ± | ± | 2× | |
| reverse-complement | ± | ± | ± | |
| n-body | ± | 2× | ± | |
| spectral-norm | ± | 2× | 2× | |
| k-nucleotide | 2× | ± | 2× | |
| fasta | 3× | 2× | ± | |
| regex-dna | 3× | 2× | 2× | |
| binary-trees | 4× | 1/2 | ± | |
| fannkuch | 7× | ± | 1/2 | |
| chameneos-redux | 17× | 2× | ± | 600,000 |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
For each named benchmark, measurements of the fastest Ada 2005 GNAT program are shown for comparison against measurements of the fastest C++ GNU g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| mandelbrot | |||||
| Ada 2005 GNAT | 22.79 | 5.76 | 33,284 | 1805 | 99% 99% 99% 99% |
| C++ GNU g++ | 25.04 | 6.29 | 28,824 | 858 | 99% 99% 100% 100% |
| pidigits | |||||
| Ada 2005 GNAT | 3.79 | 3.79 | 2,192 | 1254 | 0% 100% 0% 0% |
| C++ GNU g++ | 3.79 | 3.79 | 1,696 | 682 | 0% 100% 0% 0% |
| reverse-complement | |||||
| Ada 2005 GNAT | 1.19 | 0.98 | 197,868 | 3132 | 41% 63% 21% 0% |
| C++ GNU g++ | 1.21 | 0.85 | 245,644 | 2275 | 37% 13% 80% 14% |
| n-body | |||||
| Ada 2005 GNAT | 24.11 | 24.10 | 1,540 | 1723 | 0% 0% 0% 100% |
| C++ GNU g++ | 20.57 | 20.56 | 932 | 1428 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Ada 2005 GNAT | 15.69 | 3.98 | 2,528 | 1702 | 98% 99% 98% 99% |
| C++ GNU g++ | 11.89 | 2.99 | 1,196 | 1114 | 100% 99% 99% 99% |
| k-nucleotide | |||||
| Ada 2005 GNAT | 27.89 | 11.89 | 256,692 | 4504 | 45% 75% 30% 84% |
| C++ GNU g++ | 20.27 | 5.54 | 177,148 | 2673 | 99% 88% 90% 93% |
| fasta | |||||
| Ada 2005 GNAT | 6.54 | 6.55 | 1,576 | 1623 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.26 | 2.26 | 964 | 1470 | 100% 0% 1% 0% |
| regex-dna | |||||
| Ada 2005 GNAT | 45.99 | 16.50 | 183,732 | 3334 | 79% 68% 61% 66% |
| C++ GNU g++ | 18.37 | 5.04 | 97,464 | 1588 | 87% 96% 90% 91% |
| binary-trees | |||||
| Ada 2005 GNAT | 37.59 | 37.59 | 198,160 | 955 | 100% 0% 0% 0% |
| C++ GNU g++ | 28.55 | 9.01 | 357,820 | 892 | 71% 62% 95% 82% |
| fannkuch | |||||
| Ada 2005 GNAT | 91.65 | 91.65 | 1,500 | 746 | 100% 0% 0% 0% |
| C++ GNU g++ | 49.75 | 13.74 | 1,300 | 1186 | 80% 76% 100% 100% |
| chameneos-redux N = 600,000 reduced workload | |||||
| Ada 2005 GNAT | 18.00 | 6.75 | 2,276 | 1615 | 59% 66% 58% 60% |
| C++ GNU g++ | 1.42 | 0.39 | 1,268 | 1800 | 92% 90% 95% 88% |
wikibook Ada Programming
GNAT 4.3.3
Home Page: The Libre Site
Download: Download GNAT GPL Edition