The Computer Language
Benchmarks Game

OCaml programs versus F# .NET Core

by benchmark task performance

regex-redux
source secs mem gz cpu cpu load
OCaml 24.66 968,800 637 24.64 1% 1% 0% 100%
F# .NET Core 31.02 1,446,740 529 111.00 92% 89% 85% 91%
fannkuch-redux
source secs mem gz cpu cpu load
OCaml 16.12 ? 1017 ? 100% 100% 100% 100%
F# .NET Core 18.29 35,916 1025 71.32 99% 98% 95% 98%
n-body
source secs mem gz cpu cpu load
OCaml 21.67 1,588 1251 21.67 61% 1% 0% 39%
F# .NET Core 22.86 38,500 1381 22.86 100% 0% 1% 1%
reverse-complement
source secs mem gz cpu cpu load
OCaml 0.79 ? 1368 ? 48% 59% 74% 58%
F# .NET Core 0.82 304,232 1608 1.67 46% 36% 81% 49%
spectral-norm
source secs mem gz cpu cpu load
OCaml 4.31 5,280 914 15.97 92% 94% 93% 92%
F# .NET Core 4.32 37,008 853 16.69 96% 96% 96% 99%
binary-trees
source secs mem gz cpu cpu load
OCaml 10.03 115,968 751 30.17 89% 89% 82% 44%
F# .NET Core 8.54 1,049,740 619 28.64 87% 88% 83% 82%
k-nucleotide
source secs mem gz cpu cpu load
OCaml 21.63 255,436 1833 57.55 47% 39% 94% 89%
F# .NET Core 10.43 195,348 1926 36.77 96% 88% 84% 86%
fasta
source secs mem gz cpu cpu load
OCaml 6.00 199,732 1189 5.99 0% 2% 100% 0%
F# .NET Core 1.67 123,472 1350 6.27 93% 99% 93% 93%
mandelbrot
source secs mem gz cpu cpu load
OCaml 55.18 2,900 444 55.17 0% 1% 0% 100%
F# .NET Core 6.66 67,124 877 26.20 98% 100% 99% 98%
pidigits
source secs mem gz cpu cpu load
OCaml   Make Error
F# .NET Core 0.25 768 909 0.22 4% 0% 0% 100%
OCaml

The OCaml native-code compiler, version 4.06.0

F# .NET Core

2.0.2 a04b4bf512
"System.GC.Server": true