÷

 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
 pidigits±1/2
 nsieve±±±
 recursive±1/2±
 spectral-norm±1/2
 binary-trees±±
 partial-sums±1/2±
 fannkuch±1/2±
 mandelbrot±1/21/2
 sum-file±1/2±
 nsieve-bits±
 n-body1/2±
 fasta1/2±
 regex-dna±±
 k-nucleotide 100,000
 chameneos-redux±±
 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
 pidigits 
Ada 2005 GNAT1.646801143  
C++ GNU g++1.661,052652  
 nsieve 
Ada 2005 GNAT2.075,460428  
C++ GNU g++2.085,764313  
 recursive 
Ada 2005 GNAT2.51548598  
C++ GNU g++2.401,008566  
 spectral-norm 
Ada 2005 GNAT26.87572710  
C++ GNU g++23.84900442  
 binary-trees 
Ada 2005 GNAT5.146,608955  
C++ GNU g++4.476,996541  
 partial-sums 
Ada 2005 GNAT4.70448662  
C++ GNU g++4.05852531  
 fannkuch 
Ada 2005 GNAT9.79452746  
C++ GNU g++7.78844554  
 mandelbrot 
Ada 2005 GNAT3.90400572  
C++ GNU g++3.028961097  
 sum-file 
Ada 2005 GNAT9.52460240  
C++ GNU g++6.47852260  
 nsieve-bits 
Ada 2005 GNAT6.705,460445  
C++ GNU g++3.863,316494  
 n-body 
Ada 2005 GNAT26.384801608  
C++ GNU g++14.629321705  
 fasta 
Ada 2005 GNAT45.534481346  
C++ GNU g++18.727881248  
 regex-dna 
Ada 2005 GNAT14.0814,4961352  
C++ GNU g++5.5812,7041588  
 k-nucleotide N = 100,000 reduced workload 
Ada 2005 GNAT2.8018,7482253  
C++ GNU g++0.754,9081380  
 chameneos-redux 
Ada 2005 GNAT84.989001615  
C++ GNU g++16.691,0041729  
 reverse-complement 
Ada 2005 GNAT3.5516,320885  
C++ GNU g++0.5413,288810  

 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 GPL 2007 (20070402-41) Ada 2005 mode (default)

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license