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.37 750,404 1670 2.21 71% 49% 22% 24%
F# .NET Core 11.13 690,736 588 11.51 3% 4% 96% 2%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.33 87,548 1904 8.17 85% 98% 85% 85%
F# .NET Core 9.66 36,116 978 9.66 1% 100% 1% 0%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 31.11 1,230,080 856 106.12 90% 87% 92% 74%
F# .NET Core 105.80 1,028,144 426 106.18 1% 100% 1% 1%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 8.27 66,956 839 32.66 99% 100% 99% 99%
F# .NET Core 12.40 85,312 800 49.04 99% 99% 100% 99%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 13.28 223,584 1585 36.90 57% 97% 53% 73%
F# .NET Core 19.10 1,153,180 1477 62.50 84% 77% 80% 88%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 18.91 39,160 1172 74.75 99% 99% 98% 99%
F# .NET Core 27.05 44,236 945 96.49 99% 82% 96% 81%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.69 37,272 1305 21.68 0% 100% 1% 2%
F# .NET Core 25.38 74,468 1259 25.47 100% 2% 1% 1%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.05 40,348 878 15.80 97% 97% 98% 99%
F# .NET Core 4.34 43,484 853 16.72 96% 96% 98% 97%
binary-trees
source secs mem gz cpu cpu load
C# .NET Core 14.63 844,632 955 52.00 91% 90% 89% 89%
F# .NET Core 15.01 735,640 511 16.63 15% 42% 23% 33%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 38,372 1026 3.02 1% 0% 100% 2%
F# .NET Core 3.06 40,348 903 3.06 100% 1% 0% 1%
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