÷

 Step 1 : Are the Ada 2005 GNAT programs faster? At a glance.

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.


 Step 2 : Are the Ada 2005 GNAT programs faster? Approximately.

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
 fannkuch±±
 mandelbrot±±
 pidigits±±
 chameneos-redux±±± 60,000
 reverse-complement±±±
 n-body±±
 spectral-norm±
 binary-trees±±
 k-nucleotide±
 fasta±
 regex-dna

± read the measurements and then read the program source code.

 Step 3 : Are the Ada 2005 GNAT programs faster? Measurements.

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
 fannkuch 
Ada 2005 GNAT38.1138.122,0641518  0% 0% 0% 100%
C++ GNU g++50.3450.341,2601186  0% 0% 0% 100%
 mandelbrot 
Ada 2005 GNAT22.8122.8233,5721805  0% 0% 0% 100%
C++ GNU g++25.0325.0331,448858  0% 0% 0% 100%
 pidigits 
Ada 2005 GNAT3.783.792,1881254  0% 0% 1% 100%
C++ GNU g++3.793.791,696682  0% 0% 1% 100%
 chameneos-redux N = 60,000 reduced workload 
Ada 2005 GNAT0.320.522,1521615  0% 0% 0% 60%
C++ GNU g++0.18?1800  
 reverse-complement 
Ada 2005 GNAT1.071.09197,8643132  0% 1% 0% 99%
C++ GNU g++1.031.03245,6402275  1% 0% 1% 100%
 n-body 
Ada 2005 GNAT24.1024.101,5401723  0% 0% 0% 100%
C++ GNU g++20.5720.569321428  0% 0% 0% 100%
 spectral-norm 
Ada 2005 GNAT15.6915.702,5281702  0% 0% 0% 100%
C++ GNU g++11.9011.891,1561114  0% 0% 0% 100%
 binary-trees 
Ada 2005 GNAT37.6137.61198,160955  0% 0% 0% 100%
C++ GNU g++16.5216.51296,208892  0% 1% 0% 100%
 k-nucleotide 
Ada 2005 GNAT27.5227.54256,6924504  0% 0% 0% 100%
C++ GNU g++11.4111.41142,2643415  0% 0% 0% 100%
 fasta 
Ada 2005 GNAT6.566.561,5761623  0% 0% 0% 100%
C++ GNU g++2.262.269641470  1% 1% 0% 100%
 regex-dna 
Ada 2005 GNAT43.9443.94176,3763334  0% 0% 0% 100%
C++ GNU g++12.6412.64100,4361759  0% 0% 0% 100%

 Measurements for all the accepted programs

 Ada 2005 GNAT : large-scale safety-critical software 

book Ada Distilled: An introduction to Ada Programming for Experienced Computer Programmers, Richard Riehle, 2003 (pdf)

wikibook Ada Programming

GNAT 4.3.3

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license