The Computer Language
Benchmarks Game

Haskell GHC versus C gcc fastest programs

by faster benchmark performance

spectral-norm
source secs mem gz cpu cpu load
Haskell GHC 4.06 3,620 987 15.71 97% 99% 97% 95%
C gcc 1.98 1,168 1139 7.87 100% 99% 100% 99%
fannkuch-redux
source secs mem gz cpu cpu load
Haskell GHC 18.17 4,024 842 71.56 96% 99% 100% 99%
C gcc 8.67 852 910 34.14 99% 100% 100% 95%
pidigits
source secs mem gz cpu cpu load
Haskell GHC 4.22 9,728 379 5.17 45% 11% 10% 64%
C gcc 1.88 2,720 416 1.87 2% 1% 2% 100%
n-body
source secs mem gz cpu cpu load
Haskell GHC 21.99 3,984 1883 86.80 99% 98% 100% 99%
C gcc 9.37 1,088 1490 9.37 100% 0% 1% 0%
reverse-complement
source secs mem gz cpu cpu load
Haskell GHC 5.69 501,244 1020 7.57 59% 12% 11% 53%
C gcc 1.76 994,488 1438 3.98 97% 43% 44% 46%
binary-trees
source secs mem gz cpu cpu load
Haskell GHC 13.25 474,224 592 48.76 90% 93% 91% 97%
C gcc 3.73 116,600 836 11.74 76% 71% 98% 72%
fasta
source secs mem gz cpu cpu load
Haskell GHC 9.47 4,984 969 9.95 83% 2% 3% 18%
C gcc 1.36 2,864 2268 5.41 99% 100% 100% 99%
mandelbrot
source secs mem gz cpu cpu load
Haskell GHC 11.61 38,728 782 46.32 100% 100% 100% 100%
C gcc 1.64 26,512 1135 6.54 99% 100% 99% 100%
k-nucleotide
source secs mem gz cpu cpu load
Haskell GHC 35.19 617,884 1486 122.75 87% 87% 88% 88%
C gcc 4.88 130,060 1506 16.06 87% 96% 87% 60%
regex-redux
source secs mem gz cpu cpu load
Haskell GHC   Bad Output
C gcc 0.42 ? 1397 ? 31% 93% 10% 3%
Haskell GHC

The Glorious Glasgow Haskell Compilation System, version 8.6.2

C gcc

gcc (Ubuntu 8.2.0-7ubuntu1) 8.2.0