/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
 fasta-redux±±
 fasta±
 binary-trees±1/2
 pidigits±±
 fannkuch-redux±±
 n-body±±
 spectral-norm
 regex-dna±
 k-nucleotide±
 reverse-complement1/21/3
 mandelbrot1/331/2
 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.

 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-redux 
Ada 2005 GNAT2.422.431,2281909  0% 0% 0% 100%
C++ GNU g++2.932.946161474  1% 0% 0% 100%
 fasta 
Ada 2005 GNAT5.355.351,2282186  0% 0% 0% 100%
C++ GNU g++6.306.312881266  0% 0% 100% 0%
 binary-trees 
Ada 2005 GNAT18.225.48115,8362167  78% 79% 82% 94%
C++ GNU g++17.075.78178,988892  90% 71% 77% 59%
 pidigits 
Ada 2005 GNAT2.762.761,8001254  0% 0% 0% 100%
C++ GNU g++2.762.761,452682  0% 0% 100% 0%
 fannkuch-redux 
Ada 2005 GNAT72.0718.131,6761973  99% 100% 99% 100%
C++ GNU g++61.4215.771,0201439  100% 97% 97% 96%
 n-body 
Ada 2005 GNAT24.8624.871,2321740  0% 0% 100% 0%
C++ GNU g++20.1320.143201659  0% 0% 100% 0%
 spectral-norm 
Ada 2005 GNAT18.774.731,6321702  99% 99% 100% 99%
C++ GNU g++10.032.523881044  100% 100% 100% 100%
 regex-dna 
Ada 2005 GNAT34.6412.03152,1523334  98% 66% 60% 65%
C++ GNU g++6.004.45174,392695  33% 2% 100% 1%
 k-nucleotide 
Ada 2005 GNAT24.5912.07253,4804865  31% 44% 31% 100%
C++ GNU g++12.133.65132,0523415  83% 81% 95% 76%
 reverse-complement 
Ada 2005 GNAT4.184.19123,520885  0% 0% 100% 1%
C++ GNU g++1.250.86245,4562275  51% 15% 33% 49%
 mandelbrot 
Ada 2005 GNAT48.8548.87960572  0% 0% 100% 0%
C++ GNU g++23.745.9732,0961017  99% 99% 99% 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

GNATMAKE 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