The Q6600
Benchmarks Game

Ada 2012 GNAT versus C++ g++ fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

fannkuch-redux
source secs mem gz busy cpu load
Ada 2012 GNAT 10.23 4,332 2113 40.80 100% 100% 100% 100%
C++ g++ 10.71 1,708 980 42.33 100% 96% 100% 100%
pidigits
source secs mem gz busy cpu load
Ada 2012 GNAT 1.75 4,600 1130 1.79 0% 2% 1% 100%
C++ g++ 1.82 4,312 513 1.87 1% 1% 2% 100%
spectral-norm
source secs mem gz busy cpu load
Ada 2012 GNAT 2.00 4,248 2770 7.88 99% 98% 99% 99%
C++ g++ 1.99 2,408 1044 7.89 99% 99% 99% 99%
n-body
source secs mem gz busy cpu load
Ada 2012 GNAT 9.71 1,784 2617 9.89 1% 0% 100% 1%
C++ g++ 7.70 1,612 1879 7.81 100% 0% 1% 1%
reverse-complement
source secs mem gz busy cpu load
Ada 2012 GNAT 4.05 789,068 3283 4.64 40% 1% 72% 1%
C++ g++ 1.89 499,672 2093 1.94 100% 2% 1% 1%
binary-trees
source secs mem gz busy cpu load
Ada 2012 GNAT 9.82 202,292 2107 33.89 84% 94% 82% 85%
C++ g++ 3.96 113,236 809 12.86 74% 84% 98% 69%
k-nucleotide
source secs mem gz busy cpu load
Ada 2012 GNAT 10.22 258,500 4908 23.76 37% 19% 89% 87%
C++ g++ 3.88 156,164 1631 12.09 72% 92% 71% 77%
fasta
source secs mem gz busy cpu load
Ada 2012 GNAT 4.18 1,784 2153 4.25 95% 0% 0% 6%
C++ g++ 1.46 2,024 2711 4.40 75% 76% 75% 76%
mandelbrot
source secs mem gz busy cpu load
Ada 2012 GNAT 5.60 35,640 1819 22.24 100% 99% 99% 99%
C++ g++ 1.51 26,256 1791 6.01 100% 99% 99% 99%
regex-redux
source secs mem gz busy cpu load
Ada 2012 GNAT 7.02 154,252 3640 19.93 59% 61% 84% 79%
C++ g++ 1.86 203,856 1315 4.49 99% 50% 48% 44%
Ada 2012 GNAT

GNATMAKE 9.3.0

gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0

C++ g++

g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0