/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® quad-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-redux | ± | 2× | ± | |
| fasta | ± | 4× | 2× | |
| binary-trees | ± | 1/2 | 2× | |
| pidigits | ± | ± | 2× | |
| fannkuch-redux | ± | 2× | ± | |
| n-body | ± | 4× | ± | |
| spectral-norm | 2× | 4× | 2× | |
| regex-dna | 3× | ± | 5× | |
| k-nucleotide | 3× | 2× | ± | |
| reverse-complement | 5× | 1/2 | 1/3 | |
| mandelbrot | 8× | 1/33 | 1/2 | |
| Ada 2005 GNAT used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | ± | ± | ± | ± | 3× | 6× | 8× |
± 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-redux | |||||
| Ada 2005 GNAT | 2.42 | 2.43 | 1,228 | 1909 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.93 | 2.94 | 616 | 1474 | 1% 0% 0% 100% |
| fasta | |||||
| Ada 2005 GNAT | 5.35 | 5.35 | 1,228 | 2186 | 0% 0% 0% 100% |
| C++ GNU g++ | 6.30 | 6.31 | 288 | 1266 | 0% 0% 100% 0% |
| binary-trees | |||||
| Ada 2005 GNAT | 18.22 | 5.48 | 115,836 | 2167 | 78% 79% 82% 94% |
| C++ GNU g++ | 17.07 | 5.78 | 178,988 | 892 | 90% 71% 77% 59% |
| pidigits | |||||
| Ada 2005 GNAT | 2.76 | 2.76 | 1,800 | 1254 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.76 | 2.76 | 1,452 | 682 | 0% 0% 100% 0% |
| fannkuch-redux | |||||
| Ada 2005 GNAT | 72.07 | 18.13 | 1,676 | 1973 | 99% 100% 99% 100% |
| C++ GNU g++ | 61.42 | 15.77 | 1,020 | 1439 | 100% 97% 97% 96% |
| n-body | |||||
| Ada 2005 GNAT | 24.86 | 24.87 | 1,232 | 1740 | 0% 0% 100% 0% |
| C++ GNU g++ | 20.13 | 20.14 | 320 | 1659 | 0% 0% 100% 0% |
| spectral-norm | |||||
| Ada 2005 GNAT | 18.77 | 4.73 | 1,632 | 1702 | 99% 99% 100% 99% |
| C++ GNU g++ | 10.03 | 2.52 | 388 | 1044 | 100% 100% 100% 100% |
| regex-dna | |||||
| Ada 2005 GNAT | 34.64 | 12.03 | 152,152 | 3334 | 98% 66% 60% 65% |
| C++ GNU g++ | 6.00 | 4.45 | 174,392 | 695 | 33% 2% 100% 1% |
| k-nucleotide | |||||
| Ada 2005 GNAT | 24.59 | 12.07 | 253,480 | 4865 | 31% 44% 31% 100% |
| C++ GNU g++ | 12.13 | 3.65 | 132,052 | 3415 | 83% 81% 95% 76% |
| reverse-complement | |||||
| Ada 2005 GNAT | 4.18 | 4.19 | 123,520 | 885 | 0% 0% 100% 1% |
| C++ GNU g++ | 1.25 | 0.86 | 245,456 | 2275 | 51% 15% 33% 49% |
| mandelbrot | |||||
| Ada 2005 GNAT | 48.85 | 48.87 | 960 | 572 | 0% 0% 100% 0% |
| C++ GNU g++ | 23.74 | 5.97 | 32,096 | 1017 | 99% 99% 99% 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
GNATMAKE 4.6
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Home Page: The Libre Site
Download: Download GNAT GPL Edition