The Computer Language
Benchmarks Game

Ada 2005 GNAT programs versus C gcc

by benchmark task performance

k-nucleotide
source secs KB gz cpu cpu load
Ada 2005 GNAT 27.12 278,324 4865 27.08 1% 0% 0% 100%
C gcc 32.04 181,108 2280 32.01 1% 0% 0% 100%
spectral-norm
source secs KB gz cpu cpu load
Ada 2005 GNAT 7.87 4,260 2762 7.86 1% 1% 0% 100%
C gcc 7.85 1,692 569 7.85 0% 1% 0% 100%
binary-trees
source secs KB gz cpu cpu load
Ada 2005 GNAT 10.70 160,668 2167 10.67 1% 1% 0% 100%
C gcc 9.28 150,364 906 9.26 0% 0% 1% 100%
mandelbrot
source secs KB gz cpu cpu load
Ada 2005 GNAT 24.17 34,100 1805 24.15 1% 0% 0% 100%
C gcc 19.75 32,496 694 19.74 0% 0% 0% 100%
fasta
source secs KB gz cpu cpu load
Ada 2005 GNAT 4.07 2,024 2186 4.06 0% 0% 1% 100%
C gcc 3.29 748 1261 3.29 0% 0% 1% 100%
fasta-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 1.98 1,988 1909 1.98 4% 1% 1% 100%
C gcc 1.57 680 1321 1.57 1% 0% 1% 100%
pidigits
source secs KB gz cpu cpu load
Ada 2005 GNAT 2.29 4,132 1254 2.28 0% 1% 1% 100%
C gcc 1.73 2,072 448 1.72 1% 1% 0% 100%
reverse-complement
source secs KB gz cpu cpu load
Ada 2005 GNAT 0.92 200,988 3220 0.90 1% 0% 1% 99%
C gcc 0.67 251,684 741 0.66 0% 1% 0% 100%
n-body
source secs KB gz cpu cpu load
Ada 2005 GNAT 18.01 1,956 2436 18.00 1% 0% 2% 100%
C gcc 10.50 1,008 1490 10.49 0% 1% 1% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 44.89 4,084 2100 44.86 1% 1% 0% 100%
C gcc 22.63 808 1183 22.62 1% 2% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Ada 2005 GNAT 16.40 175,464 3492 16.38 1% 0% 0% 100%
C gcc 5.09 323,572 2579 5.08 0% 1% 0% 100%
Ada 2005 GNAT

GNATMAKE 4.9.2

gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

C gcc

gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)