The Computer Language
Benchmarks Game

OCaml versus F# .NET Core fastest programs

by faster benchmark performance

n-body
source secs mem gz cpu cpu load
OCaml 21.67 1,524 1251 21.67 1% 0% 0% 100%
F# .NET Core 22.89 37,872 1381 22.89 0% 100% 1% 0%
fannkuch-redux
source secs mem gz cpu cpu load
OCaml 16.14 ? 1017 ? 100% 100% 100% 100%
F# .NET Core 16.76 36,944 953 65.14 97% 95% 99% 98%
spectral-norm
source secs mem gz cpu cpu load
OCaml 4.29 5,356 914 16.02 91% 94% 95% 94%
F# .NET Core 4.12 36,860 732 15.89 96% 97% 98% 95%
binary-trees
source secs mem gz cpu cpu load
OCaml 9.81 116,084 751 29.45 88% 89% 43% 81%
F# .NET Core 8.23 1,050,104 611 28.72 88% 89% 89% 85%
reverse-complement
source secs mem gz cpu cpu load
OCaml 3.78 ? 1368 ? 61% 58% 61% 52%
F# .NET Core 3.01 1,036,024 1140 8.42 98% 35% 91% 59%
regex-redux
source secs mem gz cpu cpu load
OCaml 25.19 968,920 637 25.16 73% 0% 0% 28%
F# .NET Core 14.14 1,504,112 611 46.71 80% 73% 80% 97%
mandelbrot
source secs mem gz cpu cpu load
OCaml 13.75 4,488 717 54.84 100% 100% 100% 100%
F# .NET Core 6.66 67,252 897 26.17 98% 98% 100% 98%
pidigits
source secs mem gz cpu cpu load
OCaml 6.72 19,836 458 6.71 1% 1% 1% 100%
F# .NET Core 3.07 36,768 874 3.08 1% 94% 8% 1%
k-nucleotide
source secs mem gz cpu cpu load
OCaml 22.34 255,476 1833 57.35 77% 47% 94% 40%
F# .NET Core 9.62 195,496 1959 34.93 93% 86% 95% 90%
fasta
source secs mem gz cpu cpu load
OCaml 6.08 197,048 1189 6.08 1% 0% 100% 0%
F# .NET Core 1.63 100,352 1350 6.07 93% 92% 91% 98%
OCaml

The OCaml native-code compiler, version 4.07.0

F# .NET Core

sdk/2.1.300
.NETCore.App 2.1.0
"System.GC.Server": true