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,776 1139 7.87 99% 99% 100% 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,572 694 22.78 95% 95% 95% 100%
n-body
source secs KB gz cpu cpu load
Ada 2005 GNAT 10.99 1,952 2604 10.99 0% 1% 100% 1%
C gcc 9.56 1,000 1490 9.56 1% 100% 1% 1%
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 9.07 1,576 910 35.43 100% 99% 98% 94%
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 780 1321 1.55 0% 100% 2% 1%
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 1% 100% 1% 0%
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.28 156,780 906 10.12 91% 77% 59% 83%
k-nucleotide
source secs KB gz cpu cpu load
Ada 2005 GNAT 11.98 278,036 4865 25.87 87% 48% 61% 22%
C gcc 6.46 130,076 1500 17.06 51% 37% 89% 88%
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.42 145,900 812 0.57 0% 26% 20% 100%
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.43 339,000 2579 5.68 46% 70% 51% 72%
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 2,800 1993 5.26 96% 97% 100% 97%
Ada 2005 GNAT

GNATMAKE 4.9.3

gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413

C gcc

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609