The Computer Language
Benchmarks Game

Ada 2005 GNAT programs versus C gcc

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Ada 2005 GNAT 8.83 2,072 2617 8.83 1% 0% 0% 100%
C gcc 9.12 1,176 1490 9.12 1% 100% 2% 2%
spectral-norm
source secs mem gz cpu cpu load
Ada 2005 GNAT 2.00 4,468 2770 7.87 99% 98% 99% 99%
C gcc 2.00 1,300 569 7.89 99% 99% 100% 99%
pidigits
source secs mem gz cpu cpu load
Ada 2005 GNAT 1.75 4,328 1068 1.74 1% 1% 100% 1%
C gcc 1.74 2,716 452 1.74 100% 1% 1% 2%
fannkuch-redux
source secs mem gz cpu cpu load
Ada 2005 GNAT 10.23 4,504 2113 40.77 100% 100% 99% 100%
C gcc 8.66 980 910 34.22 100% 97% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
Ada 2005 GNAT 0.71 199,336 3283 0.84 82% 0% 0% 38%
C gcc 0.48 200,492 820 0.66 4% 19% 25% 98%
k-nucleotide
source secs mem gz cpu cpu load
Ada 2005 GNAT 11.32 258,596 4908 25.26 30% 65% 42% 87%
C gcc 6.67 130,160 1506 19.33 76% 50% 92% 75%
fasta
source secs mem gz cpu cpu load
Ada 2005 GNAT 4.08 2,092 2221 4.08 0% 29% 72% 3%
C gcc 1.32 2,912 2268 5.25 100% 99% 100% 99%
binary-trees
source secs mem gz cpu cpu load
Ada 2005 GNAT 8.27 202,500 2107 26.49 93% 80% 73% 80%
C gcc 2.44 133,956 836 7.57 80% 65% 68% 100%
mandelbrot
source secs mem gz cpu cpu load
Ada 2005 GNAT 5.59 32,376 1819 22.17 100% 100% 98% 99%
C gcc 1.64 29,424 1135 6.53 99% 100% 100% 100%
regex-redux
source secs mem gz cpu cpu load
Ada 2005 GNAT 6.70 154,440 3640 19.34 68% 92% 63% 66%
C gcc 1.48 152,352 1230 4.05 59% 99% 57% 61%
Ada 2005 GNAT

GNATMAKE 7.2.0

gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0

C gcc

gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0