÷

 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
 n-body±±
 pidigits±±
 mandelbrot±±
 reverse-complement±±
 spectral-norm±
 fannkuch±1/2
 k-nucleotide±
 fasta±
 regex-dna±
 binary-trees±±

± 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
 n-body 
Ada 2005 GNAT25.6925.681,2681723  0% 0% 0% 100%
C++ GNU g++23.8123.817881428  0% 1% 0% 100%
 pidigits 
Ada 2005 GNAT3.753.751,8521254  0% 0% 0% 100%
C++ GNU g++2.712.711,596682  0% 0% 1% 100%
 mandelbrot 
Ada 2005 GNAT36.6036.6133,3241805  0% 0% 0% 100%
C++ GNU g++24.5524.5530,564858  0% 0% 0% 100%
 reverse-complement 
Ada 2005 GNAT1.681.70197,5843132  1% 0% 1% 99%
C++ GNU g++1.121.12245,4322275  1% 0% 1% 100%
 spectral-norm 
Ada 2005 GNAT18.7418.752,7401464  0% 0% 0% 100%
C++ GNU g++11.9411.941,0041114  0% 0% 1% 100%
 fannkuch 
Ada 2005 GNAT82.7382.721,224746  0% 0% 0% 100%
C++ GNU g++50.0150.011,1241186  0% 0% 0% 100%
 k-nucleotide 
Ada 2005 GNAT28.5028.51254,0244504  0% 0% 0% 100%
C++ GNU g++13.6113.61132,8643415  0% 0% 0% 100%
 fasta 
Ada 2005 GNAT8.738.731,3001623  0% 0% 0% 100%
C++ GNU g++3.763.778161470  0% 0% 0% 100%
 regex-dna 
Ada 2005 GNAT44.2944.30149,6683334  4% 5% 2% 100%
C++ GNU g++14.1914.19100,3321759  0% 0% 0% 100%
 binary-trees 
Ada 2005 GNAT44.2144.2199,580955  0% 0% 0% 100%
C++ GNU g++13.4713.47148,652892  0% 0% 0% 100%
 chameneos-redux
Ada 2005 GNATBad Output

 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