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 8.91 271,504 4865 19.29 22% 49% 80% 67%
C gcc 12.35 131,904 1535 36.58 37% 71% 95% 94%
pidigits
secs KB gz cpu cpu load
Ada 2005 GNAT 2.68 3,820 1254 2.68 100% 0% 1% 1%
C gcc 2.50 2,140 448 2.49 100% 0% 1% 0%
spectral-norm
secs KB gz cpu cpu load
Ada 2005 GNAT 2.37 3,868 2762 9.36 99% 99% 99% 99%
C gcc 1.98 1,704 569 7.86 99% 100% 99% 99%
fasta-redux
secs KB gz cpu cpu load
Ada 2005 GNAT 1.99 1,644 1909 1.99 0% 2% 1% 100%
C gcc 1.59 624 1402 1.59 100% 1% 1% 0%
fannkuch-redux
secs KB gz cpu cpu load
Ada 2005 GNAT 12.66 3,928 2100 50.45 100% 100% 100% 100%
C gcc 10.06 1,388 910 39.49 99% 99% 95% 100%
mandelbrot
secs KB gz cpu cpu load
Ada 2005 GNAT 8.13 31,756 1805 32.25 100% 99% 100% 99%
C gcc 5.61 28,988 799 22.40 100% 100% 100% 100%
binary-trees
secs KB gz cpu cpu load
Ada 2005 GNAT 4.98 107,340 2167 15.11 72% 93% 67% 75%
C gcc 2.97 105,024 906 9.68 93% 77% 87% 72%
reverse-complement
secs KB gz cpu cpu load
Ada 2005 GNAT 1.01 202,680 3220 1.20 60% 42% 2% 24%
C gcc 0.60 251,368 741 0.86 95% 84% 44% 15%
n-body
secs KB gz cpu cpu load
Ada 2005 GNAT 18.05 1,632 2436 18.04 1% 0% 0% 100%
C gcc 10.39 736 1490 10.38 0% 100% 1% 1%
fasta
secs KB gz cpu cpu load
Ada 2005 GNAT 4.32 1,704 2186 4.31 100% 0% 1% 0%
C gcc 1.81 2,352 1914 5.29 89% 53% 54% 100%
regex-dna
secs KB gz cpu cpu load
Ada 2005 GNAT 6.55 168,004 3492 19.52 71% 67% 73% 87%
C gcc 2.67 290,792 2579 6.34 96% 76% 84% 67%
Ada 2005 GNAT

GNATMAKE 4.9.2

gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)

C gcc

gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)