The Computer Language
Benchmarks Game

F# .NET Core versus OCaml fastest programs

by faster benchmark performance

fasta
source secs mem gz cpu cpu load
F# .NET Core 1.63 103,520 1350 6.07 96% 93% 91% 96%
OCaml 6.03 198,704 1189 6.02 1% 0% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 9.63 199,368 1926 34.97 87% 85% 96% 95%
OCaml 22.04 255,528 1833 57.20 41% 70% 57% 93%
pidigits
source secs mem gz cpu cpu load
F# .NET Core 3.07 37,192 874 3.08 0% 1% 1% 100%
OCaml 6.72 19,908 458 6.71 0% 100% 0% 1%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 6.65 66,804 897 26.16 98% 98% 98% 100%
OCaml 13.76 4,836 717 54.86 100% 100% 100% 100%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 14.15 1,497,924 611 46.73 82% 76% 82% 92%
OCaml 25.10 968,936 637 25.08 0% 100% 0% 0%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 3.03 1,037,000 1140 8.38 95% 90% 54% 41%
OCaml 3.79 ? 1368 ? 54% 56% 65% 54%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 7.80 1,128,860 611 27.62 93% 91% 86% 87%
OCaml 9.65 116,140 751 28.69 89% 43% 98% 69%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.13 37,268 732 15.91 98% 95% 97% 95%
OCaml 4.29 5,384 914 15.99 93% 94% 94% 93%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 17.05 37,756 949 66.34 98% 100% 95% 97%
OCaml 16.24 ? 1017 ? 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.90 38,416 1381 22.90 0% 0% 1% 100%
OCaml 21.68 1,520 1251 21.68 1% 0% 100% 0%
F# .NET Core

.NET Core SDK 2.2.100
Commit: 1249f08fed
Host 2.2.0
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true

OCaml

The OCaml native-code compiler, version 4.07.0