The Computer Language
Benchmarks Game

C# .NET Core programs versus F# .NET Core

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 1.40 700,868 1670 2.22 19% 45% 63% 37%
F# .NET Core 11.05 695,604 588 11.54 51% 2% 3% 51%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.11 86,936 2087 7.95 92% 93% 96% 98%
F# .NET Core 9.67 38,672 978 9.66 1% 64% 37% 1%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 30.79 1,401,756 856 106.34 92% 82% 80% 93%
F# .NET Core 105.62 1,090,956 426 106.05 38% 3% 2% 60%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 7.40 684,584 780 24.34 86% 83% 81% 83%
F# .NET Core 23.71 596,776 531 27.26 36% 20% 36% 27%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 8.27 80,888 839 32.68 99% 99% 100% 99%
F# .NET Core 12.43 85,692 800 49.10 99% 99% 100% 99%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 13.46 223,004 1585 37.90 73% 99% 55% 56%
F# .NET Core 18.96 1,166,252 1477 63.62 82% 87% 90% 78%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 18.93 41,332 1172 75.05 99% 100% 99% 99%
F# .NET Core 26.39 46,224 945 96.08 98% 84% 99% 84%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.69 43,112 1305 21.68 1% 100% 1% 0%
F# .NET Core 25.38 80,716 1259 25.47 12% 85% 2% 3%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.06 42,800 878 15.81 98% 98% 98% 97%
F# .NET Core 4.32 45,488 853 16.57 97% 97% 96% 95%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 40,312 1026 3.03 99% 1% 1% 0%
F# .NET Core 3.05 42,220 903 3.05 1% 100% 0% 2%
C# .NET Core

dotnet 1.0.1 005db40cd1
"System.GC.Server": true

F# .NET Core

F# 4.1.0
dotnet 1.0.1 005db40cd1
"System.GC.Server": true