The Q6600
Benchmarks Game

OCaml versus F# .NET Core fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

pidigits
source secs mem gz busy cpu load
OCaml 1.76 6,056 593 1.98 100% 6% 3% 4%
F# .NET Core 1.87 35,692 905 2.01 4% 2% 4% 98%
n-body
source secs mem gz busy cpu load
OCaml 21.67 1,368 1251 23.26 3% 1% 100% 4%
F# .NET Core 22.20 33,660 1290 23.03 0% 100% 1% 3%
fannkuch-redux
source secs mem gz busy cpu load
OCaml 16.37 19,584 1004 65.39 100% 100% 100% 100%
F# .NET Core 16.68 35,816 1097 65.52 98% 97% 100% 98%
reverse-complement
source secs mem gz busy cpu load
OCaml 3.74 33,944 1368 8.90 62% 58% 60% 59%
F# .NET Core 2.93 1,031,696 1140 8.52 94% 45% 60% 90%
binary-trees
source secs mem gz busy cpu load
OCaml 9.89 152,992 751 28.64 49% 64% 98% 79%
F# .NET Core 6.28 724,124 635 22.76 91% 93% 90% 88%
mandelbrot
source secs mem gz busy cpu load
OCaml 14.02 5,048 717 55.89 99% 100% 100% 100%
F# .NET Core 5.78 65,644 933 22.72 99% 98% 98% 98%
regex-redux
source secs mem gz busy cpu load
OCaml 25.23 901,944 637 27.09 4% 1% 100% 3%
F# .NET Core 7.87 971,632 599 11.18 64% 37% 28% 13%
fasta
source secs mem gz busy cpu load
OCaml 6.00 199,124 1189 6.32 100% 1% 1% 4%
F# .NET Core 1.70 138,596 1350 6.45 95% 98% 93% 93%
spectral-norm
source secs mem gz busy cpu load
OCaml 15.70 3,704 377 16.86 100% 3% 5% 0%
F# .NET Core 4.29 35,228 853 16.12 92% 92% 97% 94%
k-nucleotide
source secs mem gz busy cpu load
OCaml 21.32 255,548 1833 59.79 91% 48% 100% 42%
F# .NET Core 5.80 183,360 1907 19.47 86% 66% 88% 96%
OCaml

The OCaml native-code compiler, version 4.10.0

F# .NET Core

.NET Core SDK 3.1.201
Host Version: 3.1.3; Commit: 4a9f85e9f8
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true