/mobile Handheld Friendly website

÷

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

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


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

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

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

 Ada 2005 GNAT used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch-redux±±
 binary-trees±1/2
 fasta-redux±±
 pidigits±±
 fasta±
 spectral-norm±
 mandelbrot±±
 k-nucleotide±
 regex-dna±1/2
 n-body±±
 reverse-complement±±±
 Ada 2005 GNAT used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±±±±

± read the measurements and then read the program source code.

 3 : Are the Ada 2005 GNAT programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch-redux 
Ada 2005 GNAT39.379.911,6722100  100% 99% 99% 99%
C++ g++49.7112.699961440  98% 100% 94% 100%
 binary-trees 
Ada 2005 GNAT18.045.61106,1042167  82% 80% 78% 95%
C++ g++19.066.60173,960892  60% 92% 75% 65%
 fasta-redux 
Ada 2005 GNAT2.012.011,2321909  0% 0% 100% 1%
C++ g++2.172.176201474  0% 0% 100% 1%
 pidigits 
Ada 2005 GNAT2.682.681,8041254  2% 0% 1% 100%
C++ g++2.682.681,452682  1% 0% 1% 99%
 fasta 
Ada 2005 GNAT4.244.241,2322186  0% 0% 100% 0%
C++ g++4.104.116201105  55% 0% 0% 46%
 spectral-norm 
Ada 2005 GNAT9.362.391,9002762  99% 98% 98% 99%
C++ g++7.962.009241044  100% 100% 100% 100%
 mandelbrot 
Ada 2005 GNAT24.846.2633,2761805  100% 100% 99% 99%
C++ g++19.645.1032,076726  95% 95% 95% 100%
 k-nucleotide 
Ada 2005 GNAT22.369.60253,4804865  29% 66% 39% 100%
C++ g++23.397.40138,1001252  73% 74% 74% 97%
 regex-dna 
Ada 2005 GNAT19.686.54100,4443740  64% 96% 67% 75%
C++ g++6.084.54173,240695  1% 77% 1% 57%
 n-body 
Ada 2005 GNAT15.0115.021,2322427  0% 0% 100% 0%
C++ g++10.4110.426201763  1% 1% 0% 100%
 reverse-complement 
Ada 2005 GNAT1.631.24197,3243220  41% 1% 90% 2%
C++ g++1.220.84245,4282275  19% 31% 12% 88%

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

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

 5 : Are there other faster programs for these benchmarks?

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

Ada 2012 as a Parallel Language for High Performance Computing (pdf)

book Ada Distilled: An introduction to Ada Programming for Experienced Computer Programmers, Richard Riehle, 2003 (pdf)

wikibook Ada Programming

GNATMAKE 4.6

gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3

Home Page: The Libre Site

Download: Download GNAT GPL and SPARK GPL Editions

Revised BSD license

  Home   Conclusions   License   Play