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 16.29 680,880 537 18.17 46% 43% 18% 7%
OCaml 25.82 173,372 784 77.00 89% 95% 54% 64%
mandelbrot
source secs KB gz cpu cpu load
F# .NET Core 12.38 85,428 800 48.97 99% 99% 99% 100%
OCaml 13.78 4,204 710 54.78 100% 100% 100% 100%
spectral-norm
source secs KB gz cpu cpu load
F# .NET Core 4.12 43,192 853 15.91 99% 96% 96% 96%
OCaml 4.47 4,680 907 15.53 92% 91% 89% 88%
k-nucleotide
source secs KB gz cpu cpu load
F# .NET Core 19.94 1,170,580 1477 65.00 77% 83% 92% 76%
OCaml 21.48 259,876 1789 57.12 91% 100% 39% 38%
n-body
source secs KB gz cpu cpu load
F# .NET Core 25.37 73,644 1259 25.46 49% 33% 2% 17%
OCaml 21.68 1,140 1239 21.67 1% 100% 1% 1%
fasta
source secs KB gz cpu cpu load
F# .NET Core 9.55 37,260 978 9.54 100% 0% 0% 1%
OCaml 5.86 203,780 1161 5.85 0% 1% 100% 0%
fannkuch-redux
source secs KB gz cpu cpu load
F# .NET Core 27.05 45,636 945 96.57 80% 81% 99% 97%
OCaml 16.13 ? 1017 ? 100% 100% 100% 100%
regex-dna
source secs KB gz cpu cpu load
F# .NET Core 27.52 1,584,888 639 91.78 90% 87% 77% 81%
OCaml 10.26 599,024 1261 18.65 86% 28% 28% 42%
reverse-complement
source secs KB gz cpu cpu load
  No program contribute your program
OCaml 0.03 ? 1314 ? 0% 50% 50% 0%
pidigits
source secs KB gz cpu cpu load
F# .NET Core 0.22 848 903 0.20 96% 5% 9% 5%
OCaml   Make Error
F# .NET Core

1.0.0-preview2-003131
"System.GC.Server": true

OCaml

The OCaml native-code compiler, version 4.03.0