OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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 |
| binary-trees | ± | ± | 2× | |
| pidigits | ± | ± | 2× | |
| fannkuch | ± | 1/3 | ± | |
| mandelbrot | ± | ± | ± | |
| spectral-norm | ± | 6× | 2× | |
| n-body | 2× | ± | ± | |
| partial-sums | 2× | ± | ± | |
| nsieve-bits | 2× | 2× | ± | |
| sum-file | 2× | ± | ± | |
| fasta | 3× | ± | ± | |
| k-nucleotide | 3× | 4× | 2× | 100,000 |
| regex-dna | 4× | ± | ± | |
| reverse-complement | 5× | ± | ± | |
± 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 |
|---|---|---|---|---|---|
| binary-trees | |||||
| Ada 2005 GNAT | 5.40 | 7,348 | 955 | ||
| C++ GNU g++ | 5.91 | 7,000 | 541 | ||
| pidigits | |||||
| Ada 2005 GNAT | 2.82 | 3,120 | 1143 | ||
| C++ GNU g++ | 2.85 | 3,124 | 652 | ||
| fannkuch | |||||
| Ada 2005 GNAT | 8.20 | 1,196 | 746 | ||
| C++ GNU g++ | 8.28 | 3,096 | 554 | ||
| mandelbrot | |||||
| Ada 2005 GNAT | 3.01 | 3,312 | 572 | ||
| C++ GNU g++ | 3.00 | 3,312 | 584 | ||
| spectral-norm | |||||
| Ada 2005 GNAT | 18.73 | 18,500 | 710 | ||
| C++ GNU g++ | 17.49 | 3,092 | 442 | ||
| n-body | |||||
| Ada 2005 GNAT | 20.18 | 1,236 | 1608 | ||
| C++ GNU g++ | 12.78 | 936 | 1705 | ||
| partial-sums | |||||
| Ada 2005 GNAT | 3.13 | 3,104 | 662 | ||
| C++ GNU g++ | 1.84 | 3,096 | 531 | ||
| nsieve-bits | |||||
| Ada 2005 GNAT | 4.99 | 6,180 | 445 | ||
| C++ GNU g++ | 2.80 | 3,328 | 494 | ||
| sum-file | |||||
| Ada 2005 GNAT | 11.56 | 14,864 | 240 | ||
| C++ GNU g++ | 6.29 | 14,864 | 260 | ||
| fasta | |||||
| Ada 2005 GNAT | 32.85 | 3,120 | 1346 | ||
| C++ GNU g++ | 11.69 | 3,120 | 1248 | ||
| k-nucleotide N = 100,000 reduced workload | |||||
| Ada 2005 GNAT | 2.22 | 19,536 | 2253 | ||
| C++ GNU g++ | 0.78 | 4,920 | 1380 | ||
| regex-dna | |||||
| Ada 2005 GNAT | 24.11 | 15,264 | 1352 | ||
| C++ GNU g++ | 6.45 | 13,408 | 1588 | ||
| reverse-complement | |||||
| Ada 2005 GNAT | 3.19 | 15,120 | 885 | ||
| C++ GNU g++ | 0.63 | 13,288 | 810 | ||
| chameneos-redux | |||||
| Ada 2005 GNAT | |||||
| nsieve | |||||
| Ada 2005 GNAT | |||||
| recursive | |||||
| Ada 2005 GNAT | |||||
wikibook Ada Programming
GNAT 4.1.320070518prerelease (Debian 4.1.2-8)
Home Page: The Libre Site
Download: Download GNAT GPL Edition