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 21.13 270,628 4865 21.09 0% 1% 1% 100%
C gcc 23.93 126,832 1500 23.91 0% 1% 1% 100%
pidigits
source secs KB gz cpu cpu load
Ada 2005 GNAT 2.50 3,516 1065 2.50 2% 0% 0% 100%
C gcc 2.50 1,992 448 2.50 2% 1% 1% 100%
n-body
source secs KB gz cpu cpu load
Ada 2005 GNAT 11.20 1,632 2604 11.19 0% 1% 0% 100%
C gcc 10.01 740 1490 10.00 1% 1% 0% 100%
binary-trees
source secs KB gz cpu cpu load
Ada 2005 GNAT 11.06 105,232 2167 11.03 0% 0% 1% 100%
C gcc 9.58 100,796 906 9.57 1% 1% 1% 100%
spectral-norm
source secs KB gz cpu cpu load
Ada 2005 GNAT 9.21 3,816 2762 9.19 1% 1% 0% 100%
C gcc 7.85 1,628 569 7.85 1% 1% 1% 100%
mandelbrot
source secs KB gz cpu cpu load
Ada 2005 GNAT 30.90 32,064 1805 30.88 0% 1% 1% 100%
C gcc 22.37 31,904 694 22.36 1% 1% 1% 100%
fasta
source secs KB gz cpu cpu load
Ada 2005 GNAT 4.32 1,648 2186 4.31 0% 1% 1% 100%
C gcc 2.79 640 1261 2.79 1% 1% 0% 100%
reverse-complement
source secs KB gz cpu cpu load
Ada 2005 GNAT 1.22 200,692 3220 1.20 2% 2% 1% 98%
C gcc 0.62 125,340 812 0.62 3% 0% 0% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 50.49 3,836 2100 50.46 1% 0% 1% 100%
C gcc 24.19 636 1183 24.18 1% 1% 0% 100%
regex-dna
source secs KB gz cpu cpu load
Ada 2005 GNAT 20.00 174,264 3492 19.98 0% 1% 1% 100%
C gcc 5.53 297,880 2579 5.50 2% 1% 1% 100%
Ada 2005 GNAT

GNATMAKE 4.9.3

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)

C gcc

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