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 8.80 2,116 2617 8.79 1% 100% 0% 0%
C gcc 9.17 1,228 1490 9.17 100% 0% 0% 1%
pidigits
source secs mem gz cpu cpu load
Ada 2012 GNAT 1.75 4,312 1068 1.75 1% 0% 100% 0%
C gcc 1.75 2,728 452 1.74 1% 2% 0% 100%
spectral-norm
source secs mem gz cpu cpu load
Ada 2012 GNAT 2.02 4,256 2770 7.89 98% 98% 98% 98%
C gcc 1.99 1,292 569 7.89 99% 99% 99% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Ada 2012 GNAT 9.82 4,448 2113 39.13 100% 100% 100% 100%
C gcc 8.72 980 910 34.43 98% 97% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
Ada 2012 GNAT 3.92 817,932 3283 4.48 37% 24% 57% 0%
C gcc 1.75 994,468 1438 3.96 48% 44% 95% 44%
k-nucleotide
source secs mem gz cpu cpu load
Ada 2012 GNAT 11.99 258,468 4908 26.17 37% 18% 87% 77%
C gcc 5.07 130,008 1506 15.25 88% 84% 58% 73%
fasta
source secs mem gz cpu cpu load
Ada 2012 GNAT 4.12 2,116 2221 4.12 1% 100% 1% 0%
C gcc 1.32 2,892 2268 5.22 100% 100% 99% 99%
binary-trees
source secs mem gz cpu cpu load
Ada 2012 GNAT 8.39 202,512 2107 27.21 79% 90% 75% 82%
C gcc 2.54 130,292 836 7.76 78% 67% 64% 98%
mandelbrot
source secs mem gz cpu cpu load
Ada 2012 GNAT 5.60 32,404 1819 22.18 99% 100% 99% 99%
C gcc 1.64 26,416 1135 6.55 100% 100% 99% 100%
regex-redux
source secs mem gz cpu cpu load
Ada 2012 GNAT 6.80 154,280 3640 19.53 71% 63% 84% 70%
C gcc 1.50 152,088 1230 4.06 54% 59% 60% 100%
Ada 2012 GNAT

GNATMAKE 7.3.0

gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0

C gcc

gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0