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
pidigits±1/22
nsieve±±±
recursive±1/2±
spectral-norm±1/22
binary-trees±±2
partial-sums±1/2±
fannkuch±1/2±
mandelbrot±1/21/2
sum-file±1/2±
nsieve-bits22±
n-body21/2±
fasta21/2±
regex-dna3±±
k-nucleotide442 100,000
chameneos-redux5±±
reverse-complement7±±

± look at the measurements

 Ada 2005 GNAT comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 pidigits 
Ada 2005 GNAT1.646801143  
C++ GNU g++ #21.661,052652  
 nsieve 
Ada 2005 GNAT2.075,460428  
C++ GNU g++ #32.085,764313  
 recursive 
Ada 2005 GNAT #22.51548598  
C++ GNU g++ #22.401,008566  
 spectral-norm 
Ada 2005 GNAT26.87572710  
C++ GNU g++23.84900442  
 binary-trees 
Ada 2005 GNAT5.146,608955  
C++ GNU g++ #24.476,996541  
 partial-sums 
Ada 2005 GNAT4.70448662  
C++ GNU g++ #34.05852531  
 fannkuch 
Ada 2005 GNAT9.79452746  
C++ GNU g++ #27.78844554  
 mandelbrot 
Ada 2005 GNAT #23.90400572  
C++ GNU g++ #43.028961097  
 sum-file 
Ada 2005 GNAT9.52460240  
C++ GNU g++ #26.47852260  
 nsieve-bits 
Ada 2005 GNAT #26.705,460445  
C++ GNU g++3.863,316494  
 n-body 
Ada 2005 GNAT26.384801608  
C++ GNU g++ #214.629321705  
 fasta 
Ada 2005 GNAT45.534481346  
C++ GNU g++ #418.727881248  
 regex-dna 
Ada 2005 GNAT #414.0814,4961352  
C++ GNU g++ #35.5812,7041588  
 k-nucleotide N = 100,000 reduced workload 
Ada 2005 GNAT2.8018,7482253  
C++ GNU g++ #30.754,9081380  
 chameneos-redux 
Ada 2005 GNAT84.989001615  
C++ GNU g++16.691,0041729  
 reverse-complement 
Ada 2005 GNAT3.5516,320885  
C++ GNU g++ #30.5413,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 GPL 2007 (20070402-41) Ada 2005 mode (default)

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license