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 38,188 1381 22.90 0% 0% 100% 0%
fannkuch-redux
source secs mem gz cpu cpu load
OCaml 16.14 ? 1017 ? 100% 100% 100% 100%
F# .NET Core 16.84 37,296 949 65.43 99% 98% 95% 97%
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.13 37,072 732 15.90 96% 95% 95% 99%
binary-trees
source secs mem gz cpu cpu load
OCaml 9.79 116,008 751 29.43 61% 89% 55% 98%
F# .NET Core 7.94 1,078,352 611 28.07 89% 87% 88% 91%
reverse-complement
source secs mem gz cpu cpu load
OCaml 3.78 ? 1368 ? 61% 58% 61% 52%
F# .NET Core 2.92 1,034,852 1140 8.12 91% 93% 36% 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.06 1,510,900 611 46.47 81% 77% 92% 81%
mandelbrot
source secs mem gz cpu cpu load
OCaml 13.75 4,488 717 54.84 100% 100% 100% 100%
F# .NET Core 6.67 67,060 877 26.23 99% 98% 98% 99%
pidigits
source secs mem gz cpu cpu load
OCaml 6.72 19,836 458 6.71 1% 1% 1% 100%
F# .NET Core 3.08 37,256 874 3.09 98% 1% 0% 3%
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.75 195,992 1926 34.82 95% 92% 87% 84%
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 105,528 1350 6.08 93% 91% 91% 99%
OCaml

The OCaml native-code compiler, version 4.07.0

F# .NET Core

.NET Core SDK 2.1.402
Commit: 3599f217f4
Host 2.1.4
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true