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.75 ? 1314 ? 46% 53% 61% 52%
F# .NET Core 11.90 1,199,404 588 13.20 7% 96% 6% 6%
binary-trees
source secs mem gz cpu cpu load
OCaml 9.82 115,804 746 28.90 90% 96% 39% 72%
F# .NET Core 22.63 844,248 531 24.99 45% 20% 10% 38%
fasta
source secs mem gz cpu cpu load
OCaml 5.89 201,740 1161 5.88 100% 1% 0% 2%
F# .NET Core 8.81 41,448 978 8.80 0% 1% 100% 1%
regex-redux
source secs mem gz cpu cpu load
OCaml 24.92 968,548 622 24.89 1% 1% 1% 100%
F# .NET Core 30.77 1,450,708 529 110.41 87% 90% 97% 86%
fannkuch-redux
source secs mem gz cpu cpu load
OCaml 16.23 ? 1017 ? 100% 100% 100% 100%
F# .NET Core 19.45 46,904 912 76.34 99% 99% 98% 98%
n-body
source secs mem gz cpu cpu load
OCaml 21.67 1,276 1239 21.66 1% 100% 0% 1%
F# .NET Core 22.87 46,672 1381 22.86 0% 0% 100% 1%
spectral-norm
source secs mem gz cpu cpu load
OCaml 4.36 5,072 907 15.48 92% 91% 93% 91%
F# .NET Core 4.34 46,716 853 16.64 95% 96% 98% 96%
k-nucleotide
source secs mem gz cpu cpu load
OCaml 19.69 259,992 1789 54.82 71% 90% 50% 70%
F# .NET Core 19.25 1,117,236 1477 62.56 80% 96% 74% 77%
mandelbrot
source secs mem gz cpu cpu load
OCaml 13.78 8,300 710 54.76 100% 100% 100% 100%
F# .NET Core 12.43 89,108 800 49.11 99% 99% 99% 100%
pidigits
source secs mem gz cpu cpu load
OCaml   Make Error
F# .NET Core 0.24 848 903 0.22 4% 4% 96% 0%
OCaml

The OCaml native-code compiler, version 4.05.0

F# .NET Core

2.0.0 cdcd1928c9
"System.GC.Server": true