The Computer Language
Benchmarks Game

OCaml programs versus Haskell GHC

by benchmark task performance

fannkuch-redux
source secs KB gz cpu cpu load
OCaml 64.75 ? 1017 ? 0% 0% 1% 100%
Haskell GHC 244.58 5,820 808 244.48 1% 0% 1% 100%
spectral-norm
source secs KB gz cpu cpu load
OCaml 15.69 3,012 377 15.69 1% 1% 0% 100%
Haskell GHC 37.62 5,784 403 37.60 1% 0% 0% 100%
regex-dna
source secs KB gz cpu cpu load
OCaml 18.95 517,500 615 18.93 1% 0% 0% 100%
Haskell GHC 34.02 321,120 1518 34.00 0% 0% 1% 100%
n-body
source secs KB gz cpu cpu load
OCaml 22.27 708 1239 22.26 1% 0% 0% 100%
Haskell GHC 23.44 4,232 1874 23.43 1% 0% 0% 100%
reverse-complement
source secs KB gz cpu cpu load
OCaml 1.28 ? 1314 ? 2% 2% 1% 100%
Haskell GHC 1.24 128,880 999 1.23 2% 0% 3% 100%
k-nucleotide
source secs KB gz cpu cpu load
OCaml 54.28 362,440 1789 54.23 1% 0% 0% 100%
Haskell GHC 46.67 497,248 1693 46.61 0% 1% 0% 100%
mandelbrot
source secs KB gz cpu cpu load
OCaml 54.88 5,960 710 54.86 0% 1% 0% 100%
Haskell GHC 47.17 40,024 782 47.15 1% 0% 0% 100%
pidigits
source secs KB gz cpu cpu load
OCaml 2.83 8,472 560 2.83 1% 0% 0% 100%
Haskell GHC 2.33 7,940 341 2.33 1% 1% 0% 100%
fasta
source secs KB gz cpu cpu load
OCaml 6.05 204,520 1161 6.04 0% 1% 1% 100%
Haskell GHC 3.46 5,344 1550 3.45 1% 0% 2% 100%
binary-trees
source secs KB gz cpu cpu load
OCaml 43.39 202,856 784 43.32 2% 0% 0% 100%
Haskell GHC 20.93 306,436 612 20.89 0% 1% 1% 100%
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