/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® quad-core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C++ g++ program.
These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.
Each table row shows, for one named benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C++ g++ program.
| Ada 2005 GNAT used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| fannkuch-redux | ± | 2× | ± | |
| binary-trees | ± | 1/2 | 2× | |
| fasta-redux | ± | 2× | ± | |
| pidigits | ± | ± | 2× | |
| fasta | ± | 2× | 2× | |
| spectral-norm | ± | 2× | 3× | |
| mandelbrot | ± | ± | 2× | |
| k-nucleotide | ± | 2× | 4× | |
| n-body | ± | ± | ± | |
| regex-dna | ± | 1/2 | 5× | |
| reverse-complement | ± | ± | ± | |
| Ada 2005 GNAT used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | ± | ± | ± | ± | ± |
± read the measurements and then read the program source code.
These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.
For each named benchmark, measurements of the fastest Ada 2005 GNAT program are shown for comparison against measurements of the fastest C++ g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| fannkuch-redux | |||||
| Ada 2005 GNAT | 39.37 | 9.91 | 1,672 | 2100 | 100% 99% 99% 99% |
| C++ g++ | 49.71 | 12.69 | 996 | 1440 | 98% 100% 94% 100% |
| binary-trees | |||||
| Ada 2005 GNAT | 18.04 | 5.61 | 106,104 | 2167 | 82% 80% 78% 95% |
| C++ g++ | 19.06 | 6.60 | 173,960 | 892 | 60% 92% 75% 65% |
| fasta-redux | |||||
| Ada 2005 GNAT | 2.01 | 2.01 | 1,232 | 1909 | 0% 0% 100% 1% |
| C++ g++ | 2.17 | 2.17 | 620 | 1474 | 0% 0% 100% 1% |
| pidigits | |||||
| Ada 2005 GNAT | 2.68 | 2.68 | 1,804 | 1254 | 2% 0% 1% 100% |
| C++ g++ | 2.68 | 2.68 | 1,452 | 682 | 1% 0% 1% 99% |
| fasta | |||||
| Ada 2005 GNAT | 4.24 | 4.24 | 1,232 | 2186 | 0% 0% 100% 0% |
| C++ g++ | 4.10 | 4.11 | 620 | 1105 | 55% 0% 0% 46% |
| spectral-norm | |||||
| Ada 2005 GNAT | 9.36 | 2.39 | 1,900 | 2762 | 99% 98% 98% 99% |
| C++ g++ | 7.96 | 2.00 | 924 | 1044 | 100% 100% 100% 100% |
| mandelbrot | |||||
| Ada 2005 GNAT | 24.84 | 6.26 | 33,276 | 1805 | 100% 100% 99% 99% |
| C++ g++ | 19.64 | 5.10 | 32,076 | 726 | 95% 95% 95% 100% |
| k-nucleotide | |||||
| Ada 2005 GNAT | 22.36 | 9.60 | 253,480 | 4865 | 29% 66% 39% 100% |
| C++ g++ | 23.39 | 7.40 | 138,100 | 1252 | 73% 74% 74% 97% |
| n-body | |||||
| Ada 2005 GNAT | 15.01 | 15.02 | 1,232 | 2427 | 0% 0% 100% 0% |
| C++ g++ | 10.55 | 10.56 | 868 | 1749 | 57% 0% 0% 43% |
| regex-dna | |||||
| Ada 2005 GNAT | 19.68 | 6.54 | 100,444 | 3740 | 64% 96% 67% 75% |
| C++ g++ | 6.08 | 4.54 | 173,240 | 695 | 1% 77% 1% 57% |
| reverse-complement | |||||
| Ada 2005 GNAT | 1.63 | 1.24 | 197,324 | 3220 | 41% 1% 90% 2% |
| C++ g++ | 1.22 | 0.84 | 245,428 | 2275 | 19% 31% 12% 88% |
Remember - those are just the fastest Ada 2005 GNAT and C++ g++ 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++ g++ 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.
Ada 2012 as a Parallel Language for High Performance Computing (pdf)
wikibook Ada Programming
GNATMAKE 4.6
gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
Home Page: The Libre Site
Download: Download GNAT GPL and SPARK GPL Editions