÷

 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
 binary-trees±±
 pidigits±±
 fannkuch±1/3±
 mandelbrot±±±
 spectral-norm±
 n-body±±
 partial-sums±±
 nsieve-bits±
 sum-file±±
 fasta±±
 k-nucleotide 100,000
 regex-dna±±
 reverse-complement±±

± 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
 binary-trees 
Ada 2005 GNAT5.407,348955  
C++ GNU g++5.917,000541  
 pidigits 
Ada 2005 GNAT2.823,1201143  
C++ GNU g++2.853,124652  
 fannkuch 
Ada 2005 GNAT8.201,196746  
C++ GNU g++8.283,096554  
 mandelbrot 
Ada 2005 GNAT3.013,312572  
C++ GNU g++3.003,312584  
 spectral-norm 
Ada 2005 GNAT18.7318,500710  
C++ GNU g++17.493,092442  
 n-body 
Ada 2005 GNAT20.181,2361608  
C++ GNU g++12.789361705  
 partial-sums 
Ada 2005 GNAT3.133,104662  
C++ GNU g++1.843,096531  
 nsieve-bits 
Ada 2005 GNAT4.996,180445  
C++ GNU g++2.803,328494  
 sum-file 
Ada 2005 GNAT11.5614,864240  
C++ GNU g++6.2914,864260  
 fasta 
Ada 2005 GNAT32.853,1201346  
C++ GNU g++11.693,1201248  
 k-nucleotide N = 100,000 reduced workload 
Ada 2005 GNAT2.2219,5362253  
C++ GNU g++0.784,9201380  
 regex-dna 
Ada 2005 GNAT24.1115,2641352  
C++ GNU g++6.4513,4081588  
 reverse-complement 
Ada 2005 GNAT3.1915,120885  
C++ GNU g++0.6313,288810  
 chameneos-redux
Ada 2005 GNATFailed
 nsieve
Ada 2005 GNATFailed
 recursive
Ada 2005 GNATFailed

 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.1.320070518prerelease (Debian 4.1.2-8)

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license