Compare the performance of Ada 2005 GNAT programs against some other language implementation.

For more information about the Ada 2005 implementation we measured see ↓ about Ada 2005 GNAT.

Compare to:

 Ada 2005 GNAT comparison summary


1/2 1/3 1/4 … Ada 2005 GNAT is better
Programs Time Memory Use Source Size Reduced N
recursiveFailed
nsieveFailed
chameneos-reduxFailed
binary-trees±±2
pidigits±±2
fannkuch±1/3±
mandelbrot±±±
spectral-norm±62
n-body2±±
partial-sums2±±
nsieve-bits22±
sum-file2±±
fasta3±±
k-nucleotide342 100,000
regex-dna4±±
reverse-complement5±±

± look at the measurements

 Ada 2005 GNAT comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 binary-trees 
Ada 2005 GNAT5.407,348955  
C++ GNU g++ #25.917,000541  
 pidigits 
Ada 2005 GNAT2.823,1201143  
C++ GNU g++ #22.853,124652  
 fannkuch 
Ada 2005 GNAT8.201,196746  
C++ GNU g++ #28.283,096554  
 mandelbrot 
Ada 2005 GNAT #23.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++ #212.789361705  
 partial-sums 
Ada 2005 GNAT3.133,104662  
C++ GNU g++ #31.843,096531  
 nsieve-bits 
Ada 2005 GNAT #24.996,180445  
C++ GNU g++2.803,328494  
 sum-file 
Ada 2005 GNAT11.5614,864240  
C++ GNU g++ #26.2914,864260  
 fasta 
Ada 2005 GNAT32.853,1201346  
C++ GNU g++ #411.693,1201248  
 k-nucleotide N = 100,000 reduced workload 
Ada 2005 GNAT2.2219,5362253  
C++ GNU g++ #30.784,9201380  
 regex-dna 
Ada 2005 GNAT #424.1115,2641352  
C++ GNU g++ #36.4513,4081588  
 reverse-complement 
Ada 2005 GNAT3.1915,120885  
C++ GNU g++ #30.6313,288810  

 about Ada 2005 GNAT

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