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
k-nucleotide  No GNU g++
regex-dna1/2±2
n-body±2±
binary-trees±±2
fannkuch±±±
pidigits±±2
fasta±2±
mandelbrot±±2
spectral-norm23±
reverse-complement71/2±
chameneos-redux17±± 60,000

± look at the measurements

 Ada 2005 GNAT comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 regex-dna 
Ada 2005 GNAT46.42158,164333417.17  58% 79% 64% 64%
C++ GNU g++ #328.80116,612159928.80  31% 0% 0% 70%
 n-body 
Ada 2005 GNAT #225.691,264172325.69  0% 0% 100% 0%
C++ GNU g++ #423.84788142823.84  1% 0% 100% 0%
 binary-trees 
Ada 2005 GNAT44.0999,58095544.08  0% 0% 100% 0%
C++ GNU g++ #240.8099,39655340.79  0% 0% 0% 100%
 fannkuch 
Ada 2005 GNAT82.741,22474682.73  0% 0% 0% 100%
C++ GNU g++ #271.421,09255471.41  100% 0% 0% 0%
 pidigits 
Ada 2005 GNAT #23.751,85212543.76  0% 0% 0% 100%
C++ GNU g++ #32.711,5966822.72  0% 9% 7% 100%
 fasta 
Ada 2005 GNAT #48.731,30016238.73  0% 0% 100% 0%
C++ GNU g++ #46.0774412666.07  0% 100% 0% 0%
 mandelbrot 
Ada 2005 GNAT #336.6533,11618059.24  99% 99% 99% 100%
C++ GNU g++ #524.7028,8008586.18  100% 100% 100% 100%
 spectral-norm 
Ada 2005 GNAT #218.742,74414644.74  99% 99% 99% 99%
C++ GNU g++ #712.011,03211143.01  100% 100% 100% 100%
 reverse-complement 
Ada 2005 GNAT7.64130,2688857.65  0% 0% 100% 0%
C++ GNU g++ #21.81245,09210981.13  15% 31% 21% 88%
 chameneos-redux N = 60,000 reduced workload 
Ada 2005 GNAT1.982,01616150.94  52% 51% 44% 50%
C++ GNU g++ #40.20?18000.06  83% 100% 80% 100%

 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.3.3

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license