The Computer Language
Benchmarks Game

OCaml programs versus Haskell GHC

by benchmark task performance

fannkuch-redux
secs KB gz cpu cpu load
OCaml 16.25 22,308 1017 0.01 100% 100% 100% 100%
Haskell GHC 75.11 10,556 665 80.89 4% 39% 59% 8%
reverse-complement
secs KB gz cpu cpu load
OCaml 0.73 31,436 1314 0.00 47% 47% 52% 70%
Haskell GHC 1.42 129,168 999 1.58 100% 8% 8% 6%
regex-dna
secs KB gz cpu cpu load
OCaml 9.43 268,480 1050 1.39 83% 83% 83% 100%
Haskell GHC 10.84 257,400 1518 40.78 96% 91% 93% 98%
n-body
secs KB gz cpu cpu load
OCaml 22.27 708 1239 22.26 1% 0% 100% 1%
Haskell GHC 23.91 8,428 1874 25.12 2% 35% 67% 2%
pidigits
secs KB gz cpu cpu load
OCaml 2.83 9,192 560 2.83 1% 0% 0% 100%
Haskell GHC 2.83 16,352 341 4.13 41% 15% 17% 76%
spectral-norm
secs KB gz cpu cpu load
OCaml 4.31 3,496 938 16.02 93% 94% 93% 92%
Haskell GHC 4.05 11,916 987 15.70 95% 97% 99% 98%
k-nucleotide
secs KB gz cpu cpu load
OCaml 20.22 362,324 1789 54.07 93% 88% 40% 49%
Haskell GHC 17.70 537,948 1693 65.71 97% 92% 92% 91%
mandelbrot
secs KB gz cpu cpu load
OCaml 13.78 5,492 710 54.89 100% 100% 100% 100%
Haskell GHC 11.87 44,232 782 47.32 100% 100% 100% 100%
binary-trees
secs KB gz cpu cpu load
OCaml 24.56 204,308 784 70.78 72% 96% 38% 85%
Haskell GHC 19.98 800,820 612 63.76 74% 87% 87% 74%
fasta
secs KB gz cpu cpu load
OCaml 6.05 200,872 1161 6.04 1% 1% 100% 0%
Haskell GHC 2.99 15,308 1567 6.84 53% 54% 54% 71%
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