The Computer Language
Benchmarks Game

Haskell GHC 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.

regex-redux
source secs mem gz busy cpu load
Haskell GHC 0.97 308,072 2213 2.32 46% 51% 80% 62%
F# .NET Core 4.37 985,812 599 6.26 78% 27% 17% 21%
mandelbrot
source secs mem gz busy cpu load
Haskell GHC 1.47 31,136 1975 5.83 99% 99% 99% 100%
F# .NET Core 3.77 63,096 933 14.76 98% 97% 98% 98%
fasta
source secs mem gz busy cpu load
Haskell GHC 0.86 8,008 1882 2.80 83% 80% 81% 81%
F# .NET Core 1.13 77,452 1350 4.24 96% 96% 90% 94%
pidigits
source secs mem gz busy cpu load
Haskell GHC 0.89 6,048 1694 0.90 0% 100% 1% 0%
F# .NET Core 0.97 34,372 905 0.98 1% 96% 1% 3%
spectral-norm
source secs mem gz busy cpu load
Haskell GHC 1.48 4,124 987 5.73 96% 97% 96% 98%
F# .NET Core 1.56 33,784 853 5.83 94% 92% 96% 92%
n-body
source secs mem gz busy cpu load
Haskell GHC 6.95 4,188 1883 26.84 95% 95% 100% 95%
F# .NET Core 6.97 34,776 1617 7.28 100% 1% 3% 1%
fannkuch-redux
source secs mem gz busy cpu load
Haskell GHC 10.22 4,148 1113 40.27 100% 99% 100% 95%
F# .NET Core 8.91 34,216 1097 34.78 98% 99% 99% 94%
binary-trees
source secs mem gz busy cpu load
Haskell GHC 4.34 471,032 799 15.56 96% 88% 87% 87%
F# .NET Core 2.71 697,592 635 9.30 89% 88% 82% 84%
reverse-complement
source secs mem gz busy cpu load
Haskell GHC 2.92 501,644 1020 3.43 6% 100% 6% 6%
F# .NET Core 1.53 1,030,248 1140 4.24 95% 89% 35% 58%
k-nucleotide
source secs mem gz busy cpu load
Haskell GHC 20.11 522,844 1059 74.17 94% 90% 95% 91%
F# .NET Core 3.95 182,004 1907 12.46 94% 78% 78% 66%
Haskell GHC

The Glorious Glasgow Haskell Compilation System,
version 8.10.1

F# .NET Core

.NET Core SDK 3.1.301
Host Version: 3.1.5; Commit: 65cd789777
<ServerGarbageCollection>true