The Computer Language
Benchmarks Game

OCaml programs versus F# .NET Core

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
OCaml 0.76 ? 1314 ? 46% 58% 57% 49%
F# .NET Core 11.05 695,604 588 11.54 51% 2% 3% 51%
regex-redux
source secs mem gz cpu cpu load
OCaml 25.09 968,516 622 25.06 1% 54% 0% 46%
F# .NET Core 105.62 1,090,956 426 106.05 38% 3% 2% 60%
binary-trees
source secs mem gz cpu cpu load
OCaml 9.95 115,760 746 29.67 99% 73% 41% 87%
F# .NET Core 23.71 596,776 531 27.26 36% 20% 36% 27%
fasta
source secs mem gz cpu cpu load
OCaml 5.88 200,032 1161 5.88 3% 100% 1% 1%
F# .NET Core 9.67 38,672 978 9.66 1% 64% 37% 1%
fannkuch-redux
source secs mem gz cpu cpu load
OCaml 16.52 ? 1004 ? 100% 100% 100% 100%
F# .NET Core 26.39 46,224 945 96.08 98% 84% 99% 84%
n-body
source secs mem gz cpu cpu load
OCaml 21.68 1,252 1239 21.67 0% 0% 100% 1%
F# .NET Core 25.38 80,716 1259 25.47 12% 85% 2% 3%
spectral-norm
source secs mem gz cpu cpu load
OCaml 4.35 5,008 907 15.54 90% 93% 93% 93%
F# .NET Core 4.32 45,488 853 16.57 97% 97% 96% 95%
k-nucleotide
source secs mem gz cpu cpu load
OCaml 20.02 261,944 1789 56.21 48% 91% 95% 48%
F# .NET Core 18.96 1,166,252 1477 63.62 82% 87% 90% 78%
mandelbrot
source secs mem gz cpu cpu load
OCaml 13.76 8,240 710 54.76 100% 100% 100% 100%
F# .NET Core 12.43 85,692 800 49.10 99% 99% 100% 99%
pidigits
source secs mem gz cpu cpu load
OCaml   Make Error
F# .NET Core 0.23 844 903 0.22 96% 4% 0% 4%
OCaml

The OCaml native-code compiler, version 4.04.0

F# .NET Core

F# 4.1.0
dotnet 1.0.1 005db40cd1
"System.GC.Server": true