The Computer Language
Benchmarks Game

F# .NET Core programs versus OCaml

by benchmark task performance

binary-trees
source secs KB gz cpu cpu load
F# .NET Core 15.36 457,128 511 17.05 24% 32% 41% 17%
OCaml 23.42 173,568 784 70.56 84% 90% 77% 55%
mandelbrot
source secs KB gz cpu cpu load
F# .NET Core 12.38 85,428 800 48.97 99% 99% 99% 100%
OCaml 13.78 7,800 710 54.76 100% 100% 100% 99%
spectral-norm
source secs KB gz cpu cpu load
F# .NET Core 4.12 43,192 853 15.91 99% 96% 96% 96%
OCaml 4.46 4,792 907 15.50 90% 93% 88% 90%
k-nucleotide
source secs KB gz cpu cpu load
F# .NET Core 19.94 1,170,580 1477 65.00 77% 83% 92% 76%
OCaml 19.76 256,940 1789 54.18 43% 96% 43% 94%
n-body
source secs KB gz cpu cpu load
F# .NET Core 25.37 73,644 1259 25.46 49% 33% 2% 17%
OCaml 21.69 1,084 1239 21.68 1% 1% 100% 1%
fasta
source secs KB gz cpu cpu load
F# .NET Core 9.55 37,260 978 9.54 100% 0% 0% 1%
OCaml 5.79 202,460 1161 5.79 1% 2% 100% 1%
fannkuch-redux
source secs KB gz cpu cpu load
F# .NET Core 27.05 45,636 945 96.57 80% 81% 99% 97%
OCaml 16.14 ? 1017 ? 100% 100% 100% 100%
regex-dna
source secs KB gz cpu cpu load
F# .NET Core 27.52 1,584,888 639 91.78 90% 87% 77% 81%
OCaml 8.18 ? 1050 ? 86% 100% 86% 84%
reverse-complement
source secs KB gz cpu cpu load
  No program contribute your program
OCaml 0.02 ? 1314 ? 50% 67% 50% 0%
pidigits
source secs KB gz cpu cpu load
F# .NET Core 0.22 848 903 0.20 96% 5% 9% 5%
OCaml   Make Error
F# .NET Core

1.0.0-preview2-003131
"System.GC.Server": true

OCaml

The OCaml native-code compiler, version 4.04.0