The Computer Language
Benchmarks Game

Ada 2005 GNAT programs versus C gcc

by benchmark task performance

spectral-norm
source secs KB gz cpu cpu load
Ada 2005 GNAT 2.01 4,248 2762 7.88 98% 99% 98% 99%
C gcc 1.98 1,868 569 7.88 100% 100% 99% 99%
mandelbrot
source secs KB gz cpu cpu load
Ada 2005 GNAT 6.10 33,904 1805 24.13 100% 99% 99% 99%
C gcc 5.92 32,904 694 22.77 100% 95% 95% 95%
fannkuch-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 11.06 4,096 2100 44.00 100% 100% 100% 100%
C gcc 8.97 1,588 910 35.14 99% 95% 100% 99%
fasta-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 1.99 1,976 1909 1.98 2% 1% 100% 1%
C gcc 1.55 796 1321 1.55 0% 1% 1% 99%
pidigits
source secs KB gz cpu cpu load
Ada 2005 GNAT 2.29 4,344 1254 2.29 2% 0% 0% 100%
C gcc 1.73 1,992 448 1.73 2% 6% 1% 100%
reverse-complement
source secs KB gz cpu cpu load
Ada 2005 GNAT 0.78 200,964 3220 0.91 63% 36% 22% 3%
C gcc 0.53 251,672 741 0.77 50% 2% 81% 21%
binary-trees
source secs KB gz cpu cpu load
Ada 2005 GNAT 5.33 160,616 2167 17.40 90% 77% 91% 73%
C gcc 3.26 156,840 906 10.12 59% 76% 78% 99%
n-body
source secs KB gz cpu cpu load
Ada 2005 GNAT 18.00 2,028 2436 18.00 0% 0% 100% 1%
C gcc 9.56 1,008 1490 9.56 1% 100% 0% 1%
regex-dna
source secs KB gz cpu cpu load
Ada 2005 GNAT 5.41 175,780 3492 16.81 70% 75% 70% 98%
C gcc 2.46 336,804 2579 5.81 74% 46% 70% 51%
fasta
source secs KB gz cpu cpu load
Ada 2005 GNAT 4.07 2,008 2186 4.06 1% 100% 0% 1%
C gcc 1.36 8,180 1993 5.26 97% 96% 100% 97%
k-nucleotide
source secs KB gz cpu cpu load
Ada 2005 GNAT 0.17 ? 4865 0.35 53% 88% 41% 24%
  No program contribute your program
Ada 2005 GNAT

GNATMAKE 4.9.3

gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413

C gcc

gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413