/mobile Handheld Friendly website

÷

 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 g++ program.


Look at speed another way - look at a box plot of Time-used data.

 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 g++ program.

 Ada 2005 GNAT used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta1/2
 binary-trees±1/2
 mandelbrot±±
 pidigits±±
 fasta-redux±±
 n-body±±
 fannkuch-redux±±
 spectral-norm
 reverse-complement1/21/3
 regex-dna1/2
 k-nucleotide±
 Ada 2005 GNAT used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/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 g++ program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta 
Ada 2005 GNAT4.064.071,4882186  0% 0% 0% 100%
C++ GNU g++6.166.163561266  0% 0% 0% 100%
 binary-trees 
Ada 2005 GNAT14.4314.45158,3682167  0% 0% 0% 100%
C++ GNU g++17.2317.29296,252892  0% 0% 0% 100%
 mandelbrot 
Ada 2005 GNAT22.7322.7530,3281805  3% 0% 0% 100%
C++ GNU g++24.2824.2932,3001017  0% 0% 0% 100%
 pidigits 
Ada 2005 GNAT2.282.292,0601254  0% 0% 0% 100%
C++ GNU g++2.272.271,648682  0% 0% 0% 100%
 fasta-redux 
Ada 2005 GNAT2.022.021,4801909  0% 0% 0% 100%
C++ GNU g++2.002.008161474  1% 1% 0% 100%
 n-body 
Ada 2005 GNAT22.1822.191,5561874  0% 0% 0% 100%
C++ GNU g++19.3019.314241659  0% 0% 0% 100%
 fannkuch-redux 
Ada 2005 GNAT62.3662.381,9401973  0% 0% 0% 100%
C++ GNU g++50.3550.361,2361440  0% 0% 0% 100%
 spectral-norm 
Ada 2005 GNAT16.3316.341,9201702  0% 0% 0% 100%
C++ GNU g++9.9910.007561044  0% 0% 0% 100%
 reverse-complement 
Ada 2005 GNAT2.762.76123,776885  0% 0% 0% 100%
C++ GNU g++0.870.89229,5162275  0% 0% 0% 100%
 regex-dna 
Ada 2005 GNAT18.7518.76100,2002771  0% 0% 0% 100%
C++ GNU g++5.395.40194,088695  0% 0% 0% 100%
 k-nucleotide 
Ada 2005 GNAT35.5135.56256,1204865  0% 0% 0% 100%
C++ GNU g++9.859.87142,1243415  0% 0% 1% 100%

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

Remember - those are just the fastest Ada 2005 GNAT and C++ GNU g++ 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 g++ 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.6

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

Home Page: The Libre Site

Download: Download GNAT GPL Edition

Revised BSD license

  Home   Conclusions   License   Help