÷

 Are the Ada 2005 GNAT programs faster?

Do the Ada 2005 GNAT programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Ada 2005 GNAT programs use a fraction of the time used by other programs or do they use several times more?


 Ada 2005 GNAT used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ k-nucleotide1/71/7
↓ regex-dna1/2±
↓ reverse-complement±
↓ mandelbrot±±
↓ pidigits±
↓ fasta±±
↓ n-body±±
↓ spectral-norm±±
↓ binary-trees±±
↓ fannkuch±
↓ chameneos-redux46×±1/2 600,000

± look at the measurements and then look at the programs.

 Are the Ada 2005 GNAT programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 k-nucleotide 
Ada 2005 GNAT27.8911.89256,6924504  45% 75% 30% 84%
GNU gcc78.1778.171,702,4161141  0% 0% 100% 0%
 regex-dna 
Ada 2005 GNAT45.9916.50183,7323334  79% 68% 61% 66%
GNU gcc31.0631.06124,7801099  100% 0% 0% 0%
 reverse-complement 
Ada 2005 GNAT1.190.98197,8683132  41% 63% 21% 0%
GNU gcc1.441.44125,276722  100% 0% 1% 0%
 mandelbrot 
Ada 2005 GNAT22.795.7633,2841805  99% 99% 99% 99%
GNU gcc24.236.0727,900879  100% 100% 100% 100%
 pidigits 
Ada 2005 GNAT3.793.792,1921254  0% 100% 0% 0%
GNU gcc3.793.791,132541  99% 0% 0% 0%
 fasta 
Ada 2005 GNAT6.546.551,5761623  0% 0% 0% 100%
GNU gcc5.745.734761221  0% 0% 100% 0%
 n-body 
Ada 2005 GNAT24.1124.101,5401723  0% 0% 0% 100%
GNU gcc20.3720.375161173  100% 0% 0% 0%
 spectral-norm 
Ada 2005 GNAT15.693.982,5281702  98% 99% 98% 99%
GNU gcc11.872.997721139  99% 100% 99% 99%
 binary-trees 
Ada 2005 GNAT37.5937.59198,160955  100% 0% 0% 0%
GNU gcc15.046.30151,220850  42% 25% 84% 69%
 fannkuch 
Ada 2005 GNAT91.6591.651,500746  100% 0% 0% 0%
GNU gcc51.4312.97700937  99% 99% 99% 100%
 chameneos-redux N = 600,000 reduced workload 
Ada 2005 GNAT18.006.752,2761615  59% 66% 58% 60%
GNU gcc0.520.15?2879  87% 93% 93% 86%

 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