The Computer Language
Benchmarks Game

OCaml programs versus Haskell GHC

by benchmark task performance

reverse-complement
source secs KB gz cpu cpu load
OCaml 0.75 34,056 1314 0.00 53% 51% 60% 57%
Haskell GHC 1.43 131,184 999 1.59 6% 6% 99% 2%
n-body
source secs KB gz cpu cpu load
OCaml 21.68 1,140 1239 21.67 1% 100% 1% 1%
Haskell GHC 24.48 7,856 1874 25.55 2% 100% 1% 2%
regex-dna
source secs KB gz cpu cpu load
OCaml 10.26 599,024 1261 18.65 86% 28% 28% 42%
Haskell GHC 10.84 264,404 1518 41.01 94% 96% 97% 92%
fannkuch-redux
source secs KB gz cpu cpu load
OCaml 16.13 27,476 1017 0.00 100% 100% 100% 100%
Haskell GHC 17.00 6,948 1153 66.65 95% 100% 98% 99%
spectral-norm
source secs KB gz cpu cpu load
OCaml 4.47 4,680 907 15.53 92% 91% 89% 88%
Haskell GHC 4.06 9,848 987 15.70 97% 97% 99% 95%
mandelbrot
source secs KB gz cpu cpu load
OCaml 13.78 4,204 710 54.78 100% 100% 100% 100%
Haskell GHC 11.63 44,252 782 46.34 100% 100% 100% 100%
binary-trees
source secs KB gz cpu cpu load
OCaml 25.82 173,372 784 77.00 89% 95% 54% 64%
Haskell GHC 20.83 817,104 612 65.44 72% 92% 80% 72%
fasta
source secs KB gz cpu cpu load
OCaml 5.86 203,780 1161 5.85 0% 1% 100% 0%
Haskell GHC 3.02 14,276 1567 6.80 53% 70% 53% 54%
k-nucleotide
source secs KB gz cpu cpu load
OCaml 0.26 39,208 1789 0.68 81% 89% 56% 44%
  No program contribute your program
pidigits
source secs KB gz cpu cpu load
OCaml   Make Error
Haskell GHC 0.13 ? 341 0.19 100% 29% 23% 33%
fasta-redux
  No programs contribute your programs
OCaml

The OCaml native-code compiler, version 4.03.0

Haskell GHC

The Glorious Glasgow Haskell Compilation System, version 8.0.1