/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® one 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 g++ program.
Look at speed another way - look at a box plot of Time-used data.
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 g++ program.
| Ada 2005 GNAT used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| fasta | 1/2 | 4× | 2× | |
| binary-trees | ± | 1/2 | 2× | |
| mandelbrot | ± | ± | 2× | |
| pidigits | ± | ± | 2× | |
| fasta-redux | ± | 2× | ± | |
| n-body | ± | 4× | ± | |
| fannkuch-redux | ± | 2× | ± | |
| spectral-norm | 2× | 3× | 2× | |
| reverse-complement | 3× | 1/2 | 1/3 | |
| regex-dna | 3× | 1/2 | 4× | |
| k-nucleotide | 4× | 2× | ± | |
| Ada 2005 GNAT used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | ± | ± | 2× | 4× | 4× |
± 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 g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| fasta | |||||
| Ada 2005 GNAT | 4.06 | 4.07 | 1,488 | 2186 | 0% 0% 0% 100% |
| C++ GNU g++ | 6.16 | 6.16 | 356 | 1266 | 0% 0% 0% 100% |
| binary-trees | |||||
| Ada 2005 GNAT | 14.43 | 14.45 | 158,368 | 2167 | 0% 0% 0% 100% |
| C++ GNU g++ | 17.23 | 17.29 | 296,252 | 892 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Ada 2005 GNAT | 22.73 | 22.75 | 30,328 | 1805 | 3% 0% 0% 100% |
| C++ GNU g++ | 24.28 | 24.29 | 32,300 | 1017 | 0% 0% 0% 100% |
| pidigits | |||||
| Ada 2005 GNAT | 2.28 | 2.29 | 2,060 | 1254 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.27 | 2.27 | 1,648 | 682 | 0% 0% 0% 100% |
| fasta-redux | |||||
| Ada 2005 GNAT | 2.02 | 2.02 | 1,480 | 1909 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.00 | 2.00 | 816 | 1474 | 1% 1% 0% 100% |
| n-body | |||||
| Ada 2005 GNAT | 22.18 | 22.19 | 1,556 | 1874 | 0% 0% 0% 100% |
| C++ GNU g++ | 19.30 | 19.31 | 424 | 1659 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Ada 2005 GNAT | 62.36 | 62.38 | 1,940 | 1973 | 0% 0% 0% 100% |
| C++ GNU g++ | 50.35 | 50.36 | 1,236 | 1440 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Ada 2005 GNAT | 16.33 | 16.34 | 1,920 | 1702 | 0% 0% 0% 100% |
| C++ GNU g++ | 9.99 | 10.00 | 756 | 1044 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Ada 2005 GNAT | 2.76 | 2.76 | 123,776 | 885 | 0% 0% 0% 100% |
| C++ GNU g++ | 0.87 | 0.89 | 229,516 | 2275 | 0% 0% 0% 100% |
| regex-dna | |||||
| Ada 2005 GNAT | 18.75 | 18.76 | 100,200 | 2771 | 0% 0% 0% 100% |
| C++ GNU g++ | 5.39 | 5.40 | 194,088 | 695 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Ada 2005 GNAT | 35.51 | 35.56 | 256,120 | 4865 | 0% 0% 0% 100% |
| C++ GNU g++ | 9.85 | 9.87 | 142,124 | 3415 | 0% 0% 1% 100% |
Remember - those are just the fastest Ada 2005 GNAT and C++ GNU 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++ GNU 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.
wikibook Ada Programming
GNAT 4.6
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Home Page: The Libre Site
Download: Download GNAT GPL Edition