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 |
| n-body | ± | 2× | ± | |
| pidigits | ± | ± | 2× | |
| reverse-complement | ± | ± | ± | |
| mandelbrot | ± | ± | 2× | |
| spectral-norm | 2× | 3× | ± | |
| fannkuch | 2× | 2× | ± | |
| fasta | 2× | 2× | ± | |
| k-nucleotide | 3× | 2× | ± | |
| regex-dna | 4× | 2× | 2× | |
| binary-trees | 7× | 1/2 | ± | |
| chameneos-redux | 13× | ± | ± | 60,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 |
|---|---|---|---|---|---|
| n-body | |||||
| Ada 2005 GNAT | 25.69 | 25.69 | 1,264 | 1723 | 0% 0% 100% 0% |
| C++ GNU g++ | 23.82 | 23.82 | 788 | 1428 | 100% 0% 0% 0% |
| pidigits | |||||
| Ada 2005 GNAT | 3.75 | 3.76 | 1,852 | 1254 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.71 | 2.71 | 1,600 | 682 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Ada 2005 GNAT | 1.72 | 1.34 | 197,584 | 3132 | 38% 3% 0% 90% |
| C++ GNU g++ | 1.34 | 0.92 | 245,440 | 2275 | 68% 50% 14% 15% |
| mandelbrot | |||||
| Ada 2005 GNAT | 36.65 | 9.24 | 33,116 | 1805 | 99% 99% 99% 100% |
| C++ GNU g++ | 24.67 | 6.17 | 30,436 | 858 | 100% 100% 100% 100% |
| spectral-norm | |||||
| Ada 2005 GNAT | 18.74 | 4.74 | 2,744 | 1464 | 99% 99% 99% 99% |
| C++ GNU g++ | 11.98 | 3.00 | 1,032 | 1114 | 100% 100% 100% 100% |
| fannkuch | |||||
| Ada 2005 GNAT | 124.52 | 31.29 | 1,792 | 1518 | 99% 99% 100% 100% |
| C++ GNU g++ | 49.61 | 13.63 | 1,160 | 1186 | 81% 77% 100% 100% |
| fasta | |||||
| Ada 2005 GNAT | 8.73 | 8.73 | 1,300 | 1623 | 0% 0% 100% 0% |
| C++ GNU g++ | 3.78 | 3.78 | 816 | 1470 | 99% 1% 0% 0% |
| k-nucleotide | |||||
| Ada 2005 GNAT | 28.18 | 11.47 | 254,024 | 4504 | 49% 72% 40% 82% |
| C++ GNU g++ | 14.80 | 4.31 | 132,452 | 3415 | 81% 80% 99% 84% |
| regex-dna | |||||
| Ada 2005 GNAT | 46.42 | 17.17 | 158,164 | 3334 | 58% 79% 64% 64% |
| C++ GNU g++ | 14.67 | 4.78 | 97,064 | 1759 | 84% 60% 100% 63% |
| binary-trees | |||||
| Ada 2005 GNAT | 44.09 | 44.08 | 99,580 | 955 | 0% 0% 100% 0% |
| C++ GNU g++ | 18.86 | 6.32 | 173,332 | 892 | 60% 74% 74% 71% |
| chameneos-redux N = 60,000 reduced workload | |||||
| Ada 2005 GNAT | 1.98 | 0.94 | 2,016 | 1615 | 52% 51% 44% 50% |
| C++ GNU g++ | 0.20 | 0.07 | ? | 1845 | 57% 57% 75% 75% |
wikibook Ada Programming
GNAT 4.3.3
Home Page: The Libre Site
Download: Download GNAT GPL Edition