The Computer Language
Benchmarks Game

OCaml programs versus Haskell GHC

by benchmark task performance

reverse-complement
secs KB gz cpu cpu load
OCaml 0.75 34,056 1314 0.00 53% 51% 60% 57%
Haskell GHC 1.42 129,168 999 1.58 100% 8% 8% 6%
fannkuch-redux
secs KB gz cpu cpu load
OCaml 16.13 27,476 1017 0.00 100% 100% 100% 100%
Haskell GHC 18.90 9,120 1110 74.39 96% 100% 99% 99%
n-body
secs KB gz cpu cpu load
OCaml 21.68 1,140 1239 21.67 1% 100% 1% 1%
Haskell GHC 23.91 8,428 1874 25.12 2% 35% 67% 2%
regex-dna
secs KB gz cpu cpu load
OCaml 10.26 599,024 1261 18.65 86% 28% 28% 42%
Haskell GHC 10.84 257,400 1518 40.78 96% 91% 93% 98%
spectral-norm
secs KB gz cpu cpu load
OCaml 4.47 4,680 907 15.53 92% 91% 89% 88%
Haskell GHC 4.05 11,916 987 15.70 95% 97% 99% 98%
mandelbrot
secs KB gz cpu cpu load
OCaml 13.78 4,204 710 54.78 100% 100% 100% 100%
Haskell GHC 11.87 44,232 782 47.32 100% 100% 100% 100%
k-nucleotide
secs KB gz cpu cpu load
OCaml 21.48 259,876 1789 57.12 91% 100% 39% 38%
Haskell GHC 17.70 537,948 1693 65.71 97% 92% 92% 91%
binary-trees
secs KB gz cpu cpu load
OCaml 25.82 173,372 784 77.00 89% 95% 54% 64%
Haskell GHC 19.98 800,820 612 63.76 74% 87% 87% 74%
fasta
secs KB gz cpu cpu load
OCaml 5.86 203,780 1161 5.85 0% 1% 100% 0%
Haskell GHC 2.99 15,308 1567 6.84 53% 54% 54% 71%
pidigits
secs KB gz cpu cpu load
OCaml   Make Error
Haskell GHC 0.15 ? 341 0.24 8% 29% 33% 100%
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 7.10.2