The Computer Language
Benchmarks Game

F# .NET Core programs versus OCaml

by benchmark task performance

binary-trees
source secs mem gz cpu cpu load
F# .NET Core 15.01 735,640 511 16.63 15% 42% 23% 33%
OCaml 23.42 173,568 784 70.56 84% 90% 77% 55%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 12.40 85,312 800 49.04 99% 99% 100% 99%
OCaml 13.78 7,800 710 54.76 100% 100% 100% 99%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 19.10 1,153,180 1477 62.50 84% 77% 80% 88%
OCaml 19.76 256,940 1789 54.18 43% 96% 43% 94%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.34 43,484 853 16.72 96% 96% 98% 97%
OCaml 4.46 4,792 907 15.50 90% 93% 88% 90%
n-body
source secs mem gz cpu cpu load
F# .NET Core 25.38 74,468 1259 25.47 100% 2% 1% 1%
OCaml 21.69 1,084 1239 21.68 1% 1% 100% 1%
fasta
source secs mem gz cpu cpu load
F# .NET Core 9.66 36,116 978 9.66 1% 100% 1% 0%
OCaml 5.79 202,460 1161 5.79 1% 2% 100% 1%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 27.05 44,236 945 96.49 99% 82% 96% 81%
OCaml 16.14 ? 1017 ? 100% 100% 100% 100%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 11.13 690,736 588 11.51 3% 4% 96% 2%
OCaml 0.74 ? 1314 ? 63% 61% 42% 57%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 1.28 49,612 426 1.29 89% 11% 2% 1%
OCaml   Bad Output
pidigits
source secs mem gz cpu cpu load
F# .NET Core 0.23 816 903 0.21 0% 96% 4% 0%
OCaml   Make Error
F# .NET Core

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

OCaml

The OCaml native-code compiler, version 4.04.0