The Computer Language
Benchmarks Game

F# .NET Core programs versus OCaml

by benchmark task performance

mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 6.66 67,124 877 26.20 98% 100% 99% 98%
OCaml 55.18 2,900 444 55.17 0% 1% 0% 100%
fasta
source secs mem gz cpu cpu load
F# .NET Core 1.67 123,472 1350 6.27 93% 99% 93% 93%
OCaml 6.00 199,732 1189 5.99 0% 2% 100% 0%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 10.43 195,348 1926 36.77 96% 88% 84% 86%
OCaml 21.63 255,436 1833 57.55 47% 39% 94% 89%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 8.54 1,049,740 619 28.64 87% 88% 83% 82%
OCaml 10.03 115,968 751 30.17 89% 89% 82% 44%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.22 36,760 732 16.21 99% 95% 96% 96%
OCaml 4.31 5,280 914 15.97 92% 94% 93% 92%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 16.65 36,904 953 64.80 100% 98% 97% 95%
OCaml 16.12 ? 1017 ? 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.86 38,500 1381 22.86 100% 0% 1% 1%
OCaml 21.67 1,588 1251 21.67 61% 1% 0% 39%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 31.02 1,446,740 529 111.00 92% 89% 85% 91%
OCaml 24.66 968,800 637 24.64 1% 1% 0% 100%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 269.16 3,308,844 595 273.26 30% 62% 41% 78%
OCaml 3.73 ? 1368 ? 56% 62% 55% 58%
pidigits
source secs mem gz cpu cpu load
F# .NET Core 0.25 800 874 0.22 4% 4% 20% 77%
OCaml   Make Error
F# .NET Core

2.0.2 a04b4bf512
"System.GC.Server": true

OCaml

The OCaml native-code compiler, version 4.06.0