The Computer Language
Benchmarks Game

OCaml programs versus Haskell GHC

by benchmark task performance

spectral-norm
source secs KB gz cpu cpu load
OCaml 5.10 3,192 938 18.14 93% 93% 95% 93%
Haskell GHC 25.92 13,552 403 63.92 85% 61% 51% 51%
fannkuch-redux
source secs KB gz cpu cpu load
OCaml 27.08 18,960 1017 0.01 100% 100% 100% 100%
Haskell GHC 81.40 6,316 1153 188.02 69% 45% 100% 19%
regex-dna
source secs KB gz cpu cpu load
OCaml 0.60 509,588 1050 0.15 77% 77% 80% 93%
Haskell GHC 1.30 72,060 1518 4.56 89% 82% 97% 90%
k-nucleotide
source secs KB gz cpu cpu load
OCaml 2.35 252,844 1789 5.60 62% 40% 93% 47%
Haskell GHC 2.92 68,328 1965 9.26 82% 88% 76% 77%
reverse-complement
source secs KB gz cpu cpu load
OCaml 1.24 15,160 1314 0.00 64% 31% 60% 50%
Haskell GHC 1.41 128,652 999 1.50 3% 4% 3% 99%
pidigits
source secs KB gz cpu cpu load
OCaml 3.84 7,024 560 3.84 0% 1% 100% 1%
Haskell GHC 3.70 13,832 341 5.19 91% 21% 14% 14%
binary-trees
source secs KB gz cpu cpu load
OCaml 14.41 102,344 784 38.41 77% 33% 100% 60%
Haskell GHC 12.74 413,228 612 38.17 94% 73% 67% 67%
n-body
source secs KB gz cpu cpu load
OCaml 75.25 600 1239 75.23 1% 0% 0% 100%
Haskell GHC 32.71 12,292 1874 33.45 1% 1% 100% 1%
fasta
source secs KB gz cpu cpu load
OCaml 12.06 600 1042 12.05 1% 1% 100% 0%
Haskell GHC 2.18 12,844 1567 6.13 63% 64% 64% 93%
mandelbrot
source secs KB gz cpu cpu load
OCaml 0.11 ? 710 0.24 82% 82% 83% 91%
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