The Computer Language
Benchmarks Game

OCaml programs versus Haskell GHC

by benchmark task performance

regex-dna
secs KB gz cpu cpu load
OCaml 1.64 53,000 615 1.63 0% 1% 2% 100%
Haskell GHC 3.49 38,092 1518 3.40 1% 2% 0% 100%
k-nucleotide
secs KB gz cpu cpu load
OCaml 5.69 58,884 870 5.68 0% 1% 1% 100%
Haskell GHC 7.05 56,672 1965 7.04 0% 1% 0% 100%
spectral-norm
secs KB gz cpu cpu load
OCaml 18.86 1,656 377 18.85 0% 0% 0% 100%
Haskell GHC 18.74 2,468 987 18.74 0% 100% 1% 100%
pidigits
secs KB gz cpu cpu load
OCaml 3.84 7,020 560 3.84 1% 1% 1% 100%
Haskell GHC 3.14 7,312 341 3.14 0% 2% 1% 100%
reverse-complement
secs KB gz cpu cpu load
OCaml 1.78 264,440 2064 1.78 1% 1% 1% 100%
Haskell GHC 1.29 129,332 999 1.28 2% 2% 1% 100%
fannkuch-redux
secs KB gz cpu cpu load
OCaml 83.36 604 473 83.34 0% 1% 1% 100%
Haskell GHC 58.15 3,500 1153 58.13 0% 1% 0% 100%
binary-trees
secs KB gz cpu cpu load
OCaml 33.65 102,376 784 33.59 1% 1% 0% 100%
Haskell GHC 18.54 190,420 521 18.51 1% 0% 0% 100%
n-body
secs KB gz cpu cpu load
OCaml 75.23 600 1239 75.21 1% 0% 1% 100%
Haskell GHC 32.69 3,624 1874 32.68 0% 1% 0% 100%
fasta
secs KB gz cpu cpu load
OCaml 12.06 600 1042 12.05 0% 0% 1% 100%
Haskell GHC 2.78 4,668 1550 2.78 1% 2% 1% 100%
mandelbrot
secs KB gz cpu cpu load
OCaml 0.37 556 710 0.23 0% 3% 5% 100%
Haskell GHC   Bad Output
fasta-redux
  No programs contribute your programs
OCaml

The OCaml native-code compiler, version 4.02.1

Haskell GHC

The Glorious Glasgow Haskell Compilation System, version 7.10.2