The Computer Language
Benchmarks Game

Haskell GHC versus F# .NET fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? 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 1.07 345,128 2213 2.47 59% 44% 44% 83%
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.51 37,504 1975 5.98 99% 99% 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,628 1882 3.32 94% 96% 93% 93%
F# .NET 1.14 120,528 1350 4.18 94% 94% 89% 91%
n-body
source secs mem gz busy cpu load
Haskell GHC 6.42 4,176 1883 6.47 0% 0% 0% 100%
F# .NET 6.88 34,744 1617 6.92 0% 100% 1% 0%
spectral-norm
source secs mem gz busy cpu load
Haskell GHC 1.47 3,964 987 5.71 97% 97% 97% 97%
F# .NET 1.55 31,916 853 5.83 92% 98% 93% 93%
fannkuch-redux
source secs mem gz busy cpu load
Haskell GHC 9.95 3,764 1113 39.18 95% 100% 99% 100%
F# .NET 8.65 31,784 1097 33.57 98% 99% 94% 98%
binary-trees
source secs mem gz busy cpu load
Haskell GHC 5.02 449,868 811 18.05 90% 85% 93% 91%
F# .NET 2.73 719,880 635 9.33 80% 89% 87% 85%
pidigits
source secs mem gz busy cpu load
Haskell GHC 1.64 7,792 360 2.06 9% 99% 7% 9%
F# .NET 0.82 34,428 905 0.83 1% 2% 96% 1%
k-nucleotide
source secs mem gz busy cpu load
Haskell GHC 22.02 638,132 1486 85.78 97% 99% 97% 97%
F# .NET 3.65 184,680 1907 12.58 94% 84% 85% 83%
reverse-complement
source secs mem gz busy cpu load
Haskell GHC   Make Error
F# .NET 1.51 1,030,852 1140 4.19 93% 36% 58% 91%
Haskell GHC

The Glorious Glasgow Haskell Compilation System,
version 9.0.1

F# .NET

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