x64 Ubuntu : Intel® Q6600® one 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 |
| fannkuch | ± | 2× | ± | |
| mandelbrot | ± | ± | 2× | |
| pidigits | ± | ± | 2× | |
| chameneos-redux | ± | ± | ± | 60,000 |
| reverse-complement | ± | ± | ± | |
| n-body | ± | 2× | ± | |
| spectral-norm | ± | 2× | 2× | |
| binary-trees | 2× | ± | ± | |
| k-nucleotide | 2× | 2× | ± | |
| fasta | 3× | 2× | ± | |
| regex-dna | 3× | 2× | 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.
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 |
|---|---|---|---|---|---|
| fannkuch | |||||
| Ada 2005 GNAT | 38.11 | 38.12 | 2,064 | 1518 | 0% 0% 0% 100% |
| C++ GNU g++ | 50.34 | 50.34 | 1,260 | 1186 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Ada 2005 GNAT | 22.81 | 22.82 | 33,572 | 1805 | 0% 0% 0% 100% |
| C++ GNU g++ | 25.03 | 25.03 | 31,448 | 858 | 0% 0% 0% 100% |
| pidigits | |||||
| Ada 2005 GNAT | 3.78 | 3.79 | 2,188 | 1254 | 0% 0% 1% 100% |
| C++ GNU g++ | 3.79 | 3.79 | 1,696 | 682 | 0% 0% 1% 100% |
| chameneos-redux N = 60,000 reduced workload | |||||
| Ada 2005 GNAT | 0.32 | 0.52 | 2,152 | 1615 | 0% 0% 0% 60% |
| C++ GNU g++ | 0.18 | ? | 1800 | ||
| reverse-complement | |||||
| Ada 2005 GNAT | 1.07 | 1.09 | 197,864 | 3132 | 0% 1% 0% 99% |
| C++ GNU g++ | 1.03 | 1.03 | 245,640 | 2275 | 1% 0% 1% 100% |
| n-body | |||||
| Ada 2005 GNAT | 24.10 | 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 | 15.70 | 2,528 | 1702 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.90 | 11.89 | 1,156 | 1114 | 0% 0% 0% 100% |
| binary-trees | |||||
| Ada 2005 GNAT | 37.61 | 37.61 | 198,160 | 955 | 0% 0% 0% 100% |
| C++ GNU g++ | 16.52 | 16.51 | 296,208 | 892 | 0% 1% 0% 100% |
| k-nucleotide | |||||
| Ada 2005 GNAT | 27.52 | 27.54 | 256,692 | 4504 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.41 | 11.41 | 142,264 | 3415 | 0% 0% 0% 100% |
| fasta | |||||
| Ada 2005 GNAT | 6.56 | 6.56 | 1,576 | 1623 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.26 | 2.26 | 964 | 1470 | 1% 1% 0% 100% |
| regex-dna | |||||
| Ada 2005 GNAT | 43.94 | 43.94 | 176,376 | 3334 | 0% 0% 0% 100% |
| C++ GNU g++ | 12.64 | 12.64 | 100,436 | 1759 | 0% 0% 0% 100% |
wikibook Ada Programming
GNAT 4.3.3
Home Page: The Libre Site
Download: Download GNAT GPL Edition