÷

 Step 1 : Are the Ada 2005 GNAT programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C GNU gcc program.


 Step 2 : Are the Ada 2005 GNAT programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Ada 2005 GNAT program used compared to the fastest C GNU gcc program.

 Ada 2005 GNAT used what fraction? used how many times more? 
Benchmark Time Memory Code
 k-nucleotide1/2±
 reverse-complement±
 fannkuch±
 pidigits±
 mandelbrot±±
 n-body±±
 spectral-norm±
 fasta±
 binary-trees±±
 regex-dna1/2±

± 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 ~ speed and size.

For each named benchmark, measurements of the fastest Ada 2005 GNAT program are shown for comparison against measurements of the fastest C GNU gcc program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 k-nucleotide 
Ada 2005 GNAT35.1111.99256,6604865  39% 78% 79% 96%
C GNU gcc58.5618.66294,0642519  90% 75% 54% 95%
 reverse-complement 
Ada 2005 GNAT1.080.94197,8163154  1% 34% 81% 1%
C GNU gcc1.311.31112,788722  1% 0% 100% 1%
 fannkuch 
Ada 2005 GNAT38.1710.602,0601518  86% 99% 100% 77%
C GNU gcc49.6313.48644937  99% 86% 84% 100%
 pidigits 
Ada 2005 GNAT2.292.292,2041254  0% 100% 0% 1%
C GNU gcc2.292.291,172541  0% 100% 3% 1%
 mandelbrot 
Ada 2005 GNAT22.186.0733,6401805  97% 93% 90% 88%
C GNU gcc24.096.0727,696879  100% 99% 99% 100%
 n-body 
Ada 2005 GNAT24.3124.311,5201723  0% 0% 100% 0%
C GNU gcc23.0623.064761429  0% 100% 0% 0%
 spectral-norm 
Ada 2005 GNAT15.945.972,4801702  94% 60% 44% 67%
C GNU gcc11.512.977721139  100% 99% 99% 91%
 fasta 
Ada 2005 GNAT6.596.591,5641623  1% 0% 0% 100%
C GNU gcc1.631.634521321  0% 100% 0% 1%
 binary-trees 
Ada 2005 GNAT37.1137.12198,136955  0% 0% 0% 100%
C GNU gcc13.887.06151,180850  53% 83% 2% 50%
 regex-dna 
Ada 2005 GNAT33.1815.38183,0643334  52% 19% 83% 59%
C GNU gcc5.232.68325,2562579  20% 63% 67% 51%
 chameneos-redux 
Ada 2005 GNAT1.140.742,2361615  0% 62% 32% 65%
No program

 Step 4 : Are there other Ada 2005 GNAT programs for these benchmarks?

Remember - those are just the fastest Ada 2005 GNAT and C GNU gcc programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ada 2005 GNAT.

Maybe one of those other Ada 2005 GNAT programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Ada 2005 GNAT and C GNU gcc programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

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

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license

  Home   Flawed   Fastest   License   Help