The Computer Language
Benchmarks Game

Ada 2005 GNAT programs versus C gcc

by benchmark task performance

pidigits
source secs KB gz cpu cpu load
Ada 2005 GNAT 2.68 4,016 1254 2.67 0% 1% 1% 100%
C gcc 2.50 1,972 448 2.50 1% 0% 0% 100%
binary-trees
source secs KB gz cpu cpu load
Ada 2005 GNAT 11.06 105,232 2167 11.03 0% 0% 1% 100%
C gcc 9.62 100,812 906 9.61 0% 1% 1% 100%
spectral-norm
source secs KB gz cpu cpu load
Ada 2005 GNAT 9.21 3,816 2762 9.19 1% 1% 0% 100%
C gcc 7.85 1,628 569 7.85 0% 1% 1% 100%
fasta-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 2.01 1,588 1909 2.00 1% 1% 1% 100%
C gcc 1.57 568 1402 1.56 0% 1% 2% 99%
mandelbrot
source secs KB gz cpu cpu load
Ada 2005 GNAT 30.90 32,064 1805 30.88 0% 1% 1% 100%
C gcc 22.37 32,124 694 22.36 0% 1% 1% 100%
fasta
source secs KB gz cpu cpu load
Ada 2005 GNAT 4.32 1,648 2186 4.31 0% 1% 1% 100%
C gcc 2.77 644 1261 2.77 0% 1% 2% 100%
n-body
source secs KB gz cpu cpu load
Ada 2005 GNAT 18.02 1,604 2436 18.01 0% 1% 1% 100%
C gcc 10.01 752 1490 10.01 0% 1% 1% 100%
reverse-complement
source secs KB gz cpu cpu load
Ada 2005 GNAT 1.22 200,692 3220 1.20 2% 2% 1% 98%
C gcc 0.63 125,280 812 0.62 0% 3% 0% 98%
fannkuch-redux
source secs KB gz cpu cpu load
Ada 2005 GNAT 50.49 3,836 2100 50.46 1% 0% 1% 100%
C gcc 24.20 640 1183 24.19 1% 1% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Ada 2005 GNAT 20.00 174,264 3492 19.98 0% 1% 1% 100%
C gcc 5.53 295,572 2579 5.51 0% 1% 1% 100%
k-nucleotide
source secs KB gz cpu cpu load
Ada 2005 GNAT 0.28 692 4865 0.26 0% 7% 3% 96%
  No program contribute your program
Ada 2005 GNAT

GNATMAKE 4.9.3

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)

C gcc

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)