The Computer Language
Benchmarks Game

Ada 2012 GNAT versus C gcc fastest programs

by faster benchmark performance

n-body
source secs mem gz cpu cpu load
Ada 2012 GNAT 9.05 1,876 2617 9.05 0% 6% 95% 1%
C gcc 9.37 1,088 1490 9.37 100% 0% 1% 0%
pidigits
source secs mem gz cpu cpu load
Ada 2012 GNAT 1.75 4,484 1068 1.75 0% 100% 1% 1%
C gcc 1.75 2,672 452 1.75 100% 2% 2% 0%
spectral-norm
source secs mem gz cpu cpu load
Ada 2012 GNAT 2.00 4,204 2770 7.87 99% 98% 99% 99%
C gcc 1.98 1,168 1139 7.87 100% 99% 100% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Ada 2012 GNAT 10.13 4,356 2113 40.33 100% 100% 100% 100%
C gcc 8.67 852 910 34.14 99% 100% 100% 95%
reverse-complement
source secs mem gz cpu cpu load
Ada 2012 GNAT 3.95 785,520 3283 4.48 74% 0% 40% 1%
C gcc 1.76 994,488 1438 3.98 97% 43% 44% 46%
k-nucleotide
source secs mem gz cpu cpu load
Ada 2012 GNAT 12.09 258,424 4908 25.29 18% 44% 62% 87%
C gcc 4.88 130,060 1506 16.06 87% 96% 87% 60%
binary-trees
source secs mem gz cpu cpu load
Ada 2012 GNAT 9.26 202,320 2107 32.16 87% 87% 94% 82%
C gcc 3.73 116,600 836 11.74 76% 71% 98% 72%
fasta
source secs mem gz cpu cpu load
Ada 2012 GNAT 4.12 1,884 2153 4.12 10% 1% 0% 90%
C gcc 1.36 2,864 2268 5.41 99% 100% 100% 99%
mandelbrot
source secs mem gz cpu cpu load
Ada 2012 GNAT 5.63 32,188 1819 22.26 99% 98% 99% 99%
C gcc 1.64 26,512 1135 6.54 99% 100% 99% 100%
regex-redux
source secs mem gz cpu cpu load
Ada 2012 GNAT 6.62 154,208 3640 19.23 69% 75% 69% 81%
C gcc 1.46 152,216 1397 3.40 45% 41% 100% 49%
Ada 2012 GNAT

GNATMAKE 8.2.0

gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0

C gcc

gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0