The Computer Language
Benchmarks Game

F# .NET Core programs versus OCaml

by benchmark task performance

binary-trees
source secs KB gz cpu cpu load
F# .NET Core 15.16 694,768 511 16.81 70% 22% 9% 12%
OCaml 23.42 173,568 784 70.56 84% 90% 77% 55%
mandelbrot
source secs KB gz cpu cpu load
F# .NET Core 12.40 85,692 800 49.06 99% 100% 99% 99%
OCaml 13.78 7,800 710 54.76 100% 100% 100% 99%
spectral-norm
source secs KB gz cpu cpu load
F# .NET Core 4.35 43,400 853 16.74 99% 96% 96% 96%
OCaml 4.46 4,792 907 15.50 90% 93% 88% 90%
k-nucleotide
source secs KB gz cpu cpu load
F# .NET Core 19.48 1,155,400 1477 63.22 81% 92% 76% 77%
OCaml 19.76 256,940 1789 54.18 43% 96% 43% 94%
n-body
source secs KB gz cpu cpu load
F# .NET Core 25.34 72,768 1259 25.41 12% 42% 27% 21%
OCaml 21.69 1,084 1239 21.68 1% 1% 100% 1%
fannkuch-redux
source secs KB gz cpu cpu load
F# .NET Core 26.59 43,828 945 96.30 98% 98% 83% 84%
OCaml 16.14 ? 1017 ? 100% 100% 100% 100%
fasta
source secs KB gz cpu cpu load
F# .NET Core 9.65 38,176 978 9.64 1% 1% 100% 1%
OCaml 5.79 202,460 1161 5.79 1% 2% 100% 1%
regex-dna
source secs KB gz cpu cpu load
F# .NET Core 27.83 1,586,948 639 93.94 79% 83% 87% 90%
OCaml 8.18 ? 1050 ? 86% 100% 86% 84%
reverse-complement
source secs KB gz cpu cpu load
  No program contribute your program
OCaml 0.02 ? 1314 ? 50% 67% 50% 0%
pidigits
source secs KB gz cpu cpu load
F# .NET Core 0.22 836 903 0.21 0% 5% 95% 9%
OCaml   Make Error
F# .NET Core

1.0.0-rc3-004530
"System.GC.Server": true

OCaml

The OCaml native-code compiler, version 4.04.0