The Q6600
Benchmarks Game

Haskell GHC versus C clang 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.

fasta
source secs mem gz busy cpu load
Haskell GHC 1.40 8,020 1882 4.16 74% 74% 74% 75%
C clang 1.44 3,948 2268 5.74 99% 100% 99% 99%
pidigits
source secs mem gz busy cpu load
Haskell GHC 1.76 6,516 1694 1.79 0% 1% 1% 99%
C clang 1.75 2,616 452 1.88 5% 100% 1% 2%
mandelbrot
source secs mem gz busy cpu load
Haskell GHC 5.06 37,660 1975 20.09 98% 100% 100% 100%
C clang 4.70 29,036 694 18.80 100% 100% 100% 100%
regex-redux
source secs mem gz busy cpu load
Haskell GHC 1.68 308,212 2213 3.92 46% 77% 44% 66%
C clang 1.41 154,436 1397 4.32 96% 69% 73% 70%
fannkuch-redux
source secs mem gz busy cpu load
Haskell GHC 18.64 4,392 842 73.68 97% 99% 99% 100%
C clang 13.88 772 1557 54.43 95% 100% 99% 98%
spectral-norm
source secs mem gz busy cpu load
Haskell GHC 4.09 4,184 987 16.03 98% 99% 99% 97%
C clang 2.08 3,212 569 8.27 100% 100% 100% 100%
binary-trees
source secs mem gz busy cpu load
Haskell GHC 13.41 450,148 592 49.72 93% 92% 96% 90%
C clang 4.81 117,408 836 14.25 63% 63% 92% 78%
reverse-complement
source secs mem gz busy cpu load
Haskell GHC 6.59 501,560 1020 9.74 92% 15% 19% 22%
C clang 2.19 994,284 750 3.28 14% 21% 40% 75%
n-body
source secs mem gz busy cpu load
Haskell GHC 21.87 4,388 1883 86.43 98% 100% 98% 99%
C clang 6.11 8 1391 6.17 54% 1% 0% 47%
k-nucleotide
source secs mem gz busy cpu load
Haskell GHC 36.99 639,092 1486 130.13 89% 87% 88% 88%
C clang 9.49 128,920 1506 20.32 51% 44% 59% 60%
Haskell GHC

The Glorious Glasgow Haskell Compilation System,
version 8.8.1

C clang

clang version 10.0.0-4ubuntu1