The Computer Language
Benchmarks Game

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

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
F# .NET Core 3.05 42,220 903 3.05 1% 100% 0% 2%
C# .NET Core 3.03 40,312 1026 3.03 99% 1% 1% 0%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 31.10 1,302,312 529 106.36 84% 97% 84% 82%
C# .NET Core 30.79 1,401,756 856 106.34 92% 82% 80% 93%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 19.65 47,960 912 77.39 99% 99% 100% 98%
C# .NET Core 18.93 41,332 1172 75.05 99% 100% 99% 99%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.87 41,696 1381 22.86 0% 1% 100% 0%
C# .NET Core 21.69 43,112 1305 21.68 1% 100% 1% 0%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.32 45,488 853 16.57 97% 97% 96% 95%
C# .NET Core 4.06 42,800 878 15.81 98% 98% 98% 97%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 18.96 1,166,252 1477 63.62 82% 87% 90% 78%
C# .NET Core 13.46 223,004 1585 37.90 73% 99% 55% 56%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 12.43 85,692 800 49.10 99% 99% 100% 99%
C# .NET Core 8.27 80,888 839 32.68 99% 99% 100% 99%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 23.71 596,776 531 27.26 36% 20% 36% 27%
C# .NET Core 7.24 729,060 851 23.70 81% 80% 86% 86%
fasta
source secs mem gz cpu cpu load
F# .NET Core 9.67 38,672 978 9.66 1% 64% 37% 1%
C# .NET Core 2.11 86,936 2087 7.95 92% 93% 96% 98%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 11.05 695,604 588 11.54 51% 2% 3% 51%
C# .NET Core 1.40 700,868 1670 2.22 19% 45% 63% 37%
F# .NET Core

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

C# .NET Core

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