The Computer Language
Benchmarks Game

Haskell GHC programs versus C gcc

by benchmark task performance

fannkuch-redux
source secs mem gz cpu cpu load
Haskell GHC 16.70 7,628 1153 65.63 100% 95% 100% 99%
C gcc 8.97 1,660 910 35.00 98% 94% 99% 100%
spectral-norm
source secs mem gz cpu cpu load
Haskell GHC 4.06 9,880 987 15.71 97% 97% 98% 97%
C gcc 1.99 1,824 1139 7.88 99% 99% 99% 100%
n-body
source secs mem gz cpu cpu load
Haskell GHC 24.48 6,468 1874 25.62 85% 2% 2% 17%
C gcc 9.96 1,016 1490 9.95 1% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Haskell GHC 1.39 132,176 999 1.52 4% 4% 100% 4%
C gcc 0.42 143,948 812 0.58 15% 26% 98% 2%
mandelbrot
source secs mem gz cpu cpu load
Haskell GHC 11.64 41,180 782 46.40 100% 100% 100% 100%
C gcc 1.65 32,684 1135 6.53 99% 99% 100% 99%
fasta
source secs mem gz cpu cpu load
Haskell GHC 14.68 455,088 1296 51.59 89% 87% 88% 91%
C gcc 1.33 2,856 2249 5.28 100% 99% 100% 99%
binary-trees
source secs mem gz cpu cpu load
Haskell GHC 26.28 511,444 494 52.69 35% 41% 93% 34%
C gcc 2.38 131,728 836 7.70 98% 87% 73% 68%
k-nucleotide
source secs mem gz cpu cpu load
Haskell GHC   Make Error
C gcc 0.06 ? 1499 0.19 83% 100% 83% 67%
pidigits
source secs mem gz cpu cpu load
Haskell GHC   Make Error
C gcc 0.06 ? 448 0.06 0% 0% 0% 100%
regex-redux
source secs mem gz cpu cpu load
Haskell GHC   Make Error
C gcc 0.02 ? 1230 0.05 67% 100% 100% 50%
Haskell GHC

The Glorious Glasgow Haskell Compilation System, version 8.0.2

C gcc

gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406