The Q6600
Benchmarks Game

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

reverse-complement
source secs mem gz busy cpu load
OCaml 3.74 33,944 1368 8.90 62% 58% 60% 59%
Haskell GHC 6.59 501,560 1020 9.74 92% 15% 19% 22%
k-nucleotide
source secs mem gz busy cpu load
OCaml 21.32 255,548 1833 59.79 91% 48% 100% 42%
Haskell GHC 36.99 639,092 1486 130.13 89% 87% 88% 88%
binary-trees
source secs mem gz busy cpu load
OCaml 9.89 152,992 751 28.64 49% 64% 98% 79%
Haskell GHC 13.41 450,148 592 49.72 93% 92% 96% 90%
fannkuch-redux
source secs mem gz busy cpu load
OCaml 16.37 19,584 1004 65.39 100% 100% 100% 100%
Haskell GHC 18.64 4,392 842 73.68 97% 99% 99% 100%
n-body
source secs mem gz busy cpu load
OCaml 21.67 1,368 1251 23.26 3% 1% 100% 4%
Haskell GHC 21.87 4,388 1883 86.43 98% 100% 98% 99%
pidigits
source secs mem gz busy cpu load
OCaml 1.76 6,056 593 1.98 100% 6% 3% 4%
Haskell GHC 1.76 6,516 1694 1.79 0% 1% 1% 99%
mandelbrot
source secs mem gz busy cpu load
OCaml 14.02 5,048 717 55.89 99% 100% 100% 100%
Haskell GHC 5.06 37,660 1975 20.09 98% 100% 100% 100%
spectral-norm
source secs mem gz busy cpu load
OCaml 15.70 3,704 377 16.86 100% 3% 5% 0%
Haskell GHC 4.09 4,184 987 16.03 98% 99% 99% 97%
fasta
source secs mem gz busy cpu load
OCaml 6.00 199,124 1189 6.32 100% 1% 1% 4%
Haskell GHC 1.40 8,020 1882 4.16 74% 74% 74% 75%
regex-redux
source secs mem gz busy cpu load
OCaml 25.23 901,944 637 27.09 4% 1% 100% 3%
Haskell GHC 1.68 308,212 2213 3.92 46% 77% 44% 66%
OCaml

The OCaml native-code compiler, version 4.10.0

Haskell GHC

The Glorious Glasgow Haskell Compilation System,
version 8.8.1