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.74 3,776 1065 1.73 1% 0% 100% 0%
C gcc 1.73 2,116 448 1.73 1% 99% 1% 0%
spectral-norm
source secs mem gz cpu cpu load
Ada 2005 GNAT 2.02 4,244 2762 7.88 98% 99% 98% 98%
C gcc 1.99 1,824 1139 7.88 99% 99% 99% 100%
n-body
source secs mem gz cpu cpu load
Ada 2005 GNAT 10.30 1,952 2604 10.30 1% 100% 0% 0%
C gcc 9.96 1,016 1490 9.95 1% 1% 1% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Ada 2005 GNAT 9.98 4,200 2100 39.76 100% 100% 100% 100%
C gcc 8.97 1,660 910 35.00 98% 94% 99% 100%
reverse-complement
source secs mem gz cpu cpu load
Ada 2005 GNAT 0.69 202,188 3220 0.80 80% 6% 1% 35%
C gcc 0.42 143,948 812 0.58 15% 26% 98% 2%
k-nucleotide
source secs mem gz cpu cpu load
Ada 2005 GNAT 12.94 258,312 4865 31.07 55% 80% 21% 86%
C gcc 5.38 129,772 1499 16.37 61% 82% 89% 74%
fasta
source secs mem gz cpu cpu load
Ada 2005 GNAT 4.09 1,956 2186 4.08 0% 0% 0% 100%
C gcc 1.33 2,856 2249 5.28 100% 99% 100% 99%
binary-trees
source secs mem gz cpu cpu load
Ada 2005 GNAT 7.72 202,276 2101 23.33 70% 79% 90% 68%
C gcc 2.38 131,728 836 7.70 98% 87% 73% 68%
mandelbrot
source secs mem gz cpu cpu load
Ada 2005 GNAT 5.58 33,932 1805 22.09 99% 100% 99% 99%
C gcc 1.65 32,684 1135 6.53 99% 99% 100% 99%
regex-redux
source secs mem gz cpu cpu load
Ada 2005 GNAT 8.70 163,000 3618 25.50 86% 78% 69% 60%
C gcc 1.45 155,768 1230 4.03 61% 64% 56% 100%
Ada 2005 GNAT

GNATMAKE 6.3.0

gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406

C gcc

gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406