The Computer Language
Benchmarks Game

Ada 2005 GNAT programs versus C gcc

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Ada 2005 GNAT 1.73 3,616 1065 1.73 2% 1% 100% 1%
C gcc 1.73 1,992 448 1.73 1% 100% 1% 0%
spectral-norm
source secs mem gz cpu cpu load
Ada 2005 GNAT 2.01 4,240 2762 7.88 99% 99% 99% 98%
C gcc 1.98 1,776 1139 7.87 99% 99% 100% 99%
n-body
source secs mem gz cpu cpu load
Ada 2005 GNAT 10.29 1,908 2604 10.29 100% 1% 0% 0%
C gcc 9.56 1,000 1490 9.56 1% 100% 1% 1%
fannkuch-redux
source secs mem gz cpu cpu load
Ada 2005 GNAT 10.19 4,140 2100 40.60 100% 100% 100% 100%
C gcc 9.07 1,576 910 35.43 100% 99% 98% 94%
binary-trees
source secs mem gz cpu cpu load
Ada 2005 GNAT 5.37 160,624 2167 17.43 83% 93% 74% 79%
C gcc 3.28 156,780 906 10.12 91% 77% 59% 83%
reverse-complement
source secs mem gz cpu cpu load
Ada 2005 GNAT 0.73 201,012 3220 0.85 36% 1% 80% 0%
C gcc 0.42 145,900 812 0.57 0% 26% 20% 100%
k-nucleotide
source secs mem gz cpu cpu load
Ada 2005 GNAT 11.63 277,648 4865 25.16 31% 20% 86% 81%
C gcc 6.46 130,076 1500 17.06 51% 37% 89% 88%
fasta
source secs mem gz cpu cpu load
Ada 2005 GNAT 4.11 2,044 2186 4.10 0% 1% 100% 1%
C gcc 1.36 2,800 1993 5.26 96% 97% 100% 97%
mandelbrot
source secs mem gz cpu cpu load
Ada 2005 GNAT 5.70 32,000 1805 22.54 100% 99% 99% 99%
C gcc 1.64 29,848 1135 6.51 100% 100% 100% 100%
regex-redux
source secs mem gz cpu cpu load
  No program contribute your program
C gcc 0.05 ? 1266 0.06 50% 20% 17% 50%
Ada 2005 GNAT

GNATMAKE 5.4.0

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

C gcc

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