The Computer Language
Benchmarks Game

Haskell GHC versus F# .NET 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,028 2213 2.31 64% 46% 81% 47%
F# .NET 2.85 1,301,192 611 7.36 51% 92% 59% 56%
mandelbrot
source secs mem gz busy cpu load
Haskell GHC 1.47 38,268 1975 5.82 99% 100% 99% 99%
F# .NET 3.77 64,912 933 14.73 99% 97% 98% 97%
fasta
source secs mem gz busy cpu load
Haskell GHC 0.88 7,948 1882 2.87 81% 82% 81% 81%
F# .NET 1.14 120,528 1350 4.18 94% 94% 89% 91%
pidigits
source secs mem gz busy cpu load
Haskell GHC 0.75 5,992 1694 0.76 0% 0% 1% 100%
F# .NET 0.82 34,428 905 0.83 1% 2% 96% 1%
spectral-norm
source secs mem gz busy cpu load
Haskell GHC 1.48 4,044 987 5.71 96% 96% 97% 96%
F# .NET 1.55 31,916 853 5.83 92% 98% 93% 93%
n-body
source secs mem gz busy cpu load
Haskell GHC 6.95 4,196 1883 26.83 95% 95% 95% 100%
F# .NET 6.88 34,744 1617 6.92 0% 100% 1% 0%
fannkuch-redux
source secs mem gz busy cpu load
Haskell GHC 10.22 3,620 1113 40.23 100% 100% 95% 99%
F# .NET 8.65 31,784 1097 33.57 98% 99% 94% 98%
binary-trees
source secs mem gz busy cpu load
Haskell GHC 4.11 519,284 811 15.16 92% 89% 91% 97%
F# .NET 2.73 719,880 635 9.33 80% 89% 87% 85%
reverse-complement
source secs mem gz busy cpu load
Haskell GHC 2.95 501,572 1020 3.51 6% 6% 6% 100%
F# .NET 1.51 1,030,852 1140 4.19 93% 36% 58% 91%
k-nucleotide
source secs mem gz busy cpu load
Haskell GHC 20.01 522,656 1059 73.95 90% 91% 95% 94%
F# .NET 3.65 184,680 1907 12.58 94% 84% 85% 83%
Haskell GHC

The Glorious Glasgow Haskell Compilation System,
version 8.10.1

F# .NET

.NET SDK 5.0.100
Host Version: 5.0.0; Commit: cf258a14b7
<ServerGarbageCollection>true