The Computer Language
Benchmarks Game

Ada 2005 GNAT programs versus C gcc

by benchmark task performance

k-nucleotide
secs KB gz cpu cpu load
Ada 2005 GNAT 11.91 278,332 4865 25.60 33% 37% 61% 86%
C gcc 12.17 189,420 2280 36.18 53% 97% 53% 96%
spectral-norm
secs KB gz cpu cpu load
Ada 2005 GNAT 2.00 4,236 2762 7.87 99% 99% 99% 99%
C gcc 1.98 1,784 1139 7.87 99% 99% 100% 99%
mandelbrot
secs KB gz cpu cpu load
Ada 2005 GNAT 6.09 33,924 1805 24.15 99% 100% 99% 100%
C gcc 5.92 32,464 694 22.81 95% 100% 96% 95%
fannkuch-redux
secs KB gz cpu cpu load
Ada 2005 GNAT 11.25 4,116 2100 44.84 100% 100% 100% 100%
C gcc 9.16 3,624 910 35.83 95% 99% 99% 99%
fasta-redux
secs KB gz cpu cpu load
Ada 2005 GNAT 1.98 1,980 1909 1.98 100% 2% 2% 1%
C gcc 1.55 732 1321 1.54 1% 100% 0% 1%
pidigits
secs KB gz cpu cpu load
Ada 2005 GNAT 2.29 4,184 1254 2.28 100% 1% 1% 0%
C gcc 1.73 1,988 448 1.72 1% 0% 1% 100%
reverse-complement
secs KB gz cpu cpu load
Ada 2005 GNAT 0.78 201,036 3220 0.92 27% 32% 4% 56%
C gcc 0.50 251,028 741 0.76 82% 44% 12% 20%
binary-trees
secs KB gz cpu cpu load
Ada 2005 GNAT 5.32 178,956 2167 17.84 83% 74% 91% 92%
C gcc 3.24 156,848 906 10.15 85% 62% 78% 92%
n-body
secs KB gz cpu cpu load
Ada 2005 GNAT 18.02 1,956 2436 18.02 1% 100% 0% 1%
C gcc 9.56 1,008 1490 9.56 1% 0% 0% 100%
fasta
secs KB gz cpu cpu load
Ada 2005 GNAT 4.07 2,060 2186 4.06 100% 1% 0% 0%
C gcc 1.90 6,020 1914 5.21 90% 3% 87% 97%
regex-dna
secs KB gz cpu cpu load
Ada 2005 GNAT 5.52 156,084 3492 16.89 76% 67% 78% 87%
C gcc 2.45 317,952 2579 5.87 53% 51% 48% 92%
Ada 2005 GNAT

GNATMAKE 4.9.3

gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010

C gcc

gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010