The Computer Language
Benchmarks Game

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

by faster benchmark performance

fasta
source secs mem gz cpu cpu load
F# .NET Core 1.63 105,528 1350 6.08 93% 91% 91% 99%
C# .NET Core 2.15 68,048 2098 7.97 90% 95% 95% 91%
regex-redux
source secs mem gz cpu cpu load
F# .NET Core 14.06 1,510,900 611 46.47 81% 77% 92% 81%
C# .NET Core 14.90 1,492,752 673 48.69 83% 79% 73% 93%
fannkuch-redux
source secs mem gz cpu cpu load
F# .NET Core 16.84 37,296 949 65.43 99% 98% 95% 97%
C# .NET Core 17.47 33,448 1068 69.43 100% 99% 99% 100%
reverse-complement
source secs mem gz cpu cpu load
F# .NET Core 2.92 1,034,852 1140 8.12 91% 93% 36% 59%
C# .NET Core 2.98 1,035,064 1621 7.18 74% 77% 36% 56%
pidigits
source secs mem gz cpu cpu load
F# .NET Core 3.08 37,256 874 3.09 98% 1% 0% 3%
C# .NET Core 3.06 36,204 1121 3.06 98% 1% 2% 3%
spectral-norm
source secs mem gz cpu cpu load
F# .NET Core 4.13 37,072 732 15.90 96% 95% 95% 99%
C# .NET Core 4.07 35,300 878 15.84 97% 98% 99% 97%
binary-trees
source secs mem gz cpu cpu load
F# .NET Core 7.94 1,078,352 611 28.07 89% 87% 88% 91%
C# .NET Core 7.81 804,268 810 26.27 91% 80% 83% 84%
n-body
source secs mem gz cpu cpu load
F# .NET Core 22.89 38,188 1381 22.90 0% 0% 100% 0%
C# .NET Core 21.40 36,048 1542 21.40 100% 0% 1% 0%
mandelbrot
source secs mem gz cpu cpu load
F# .NET Core 6.67 67,060 877 26.23 99% 98% 98% 99%
C# .NET Core 5.86 66,856 794 22.99 99% 98% 98% 99%
k-nucleotide
source secs mem gz cpu cpu load
F# .NET Core 9.75 195,992 1926 34.82 95% 92% 87% 84%
C# .NET Core 5.58 187,032 2574 18.81 70% 93% 81% 95%
F# .NET Core

.NET Core SDK 2.1.402
Commit: 3599f217f4
Host 2.1.4
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true

C# .NET Core

.NET Core SDK 2.1.402
Commit: 3599f217f4
Host 2.1.4
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true