The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Haskell GHC versus F# .NET

Always look at the source code.

If the fastest programs are hand-written vector instructions, does the host language matter? You might be more interested in the less optimised programs — more cpu seconds, less gz source code.

fannkuch-redux
source mem gz cpu
F# .NET #6 32,752 1097 33.86
Haskell GHC #4 4,940 665 38.35
Haskell GHC #6 6,000 1113 40.52
Haskell GHC #5 6,196 842 40.82
F# .NET #5 37,736 912 41.06
Haskell GHC #2 25,896 808 129.64
Haskell GHC 10,224 559 317.32
Haskell GHC #3   Make Error  
n-body
source mem gz cpu
F# .NET #6 37,180 1383 4.99
F# .NET #5 37,244 1351 6.31
Haskell GHC #2 6,140 1883 6.61
F# .NET #3 35,620 1617 6.84
F# .NET #4 34,136 1290 6.91
F# .NET #2 37,376 1381 7.22
Haskell GHC 6,136 1706 7.28
F# .NET   Bad Output  
spectral-norm
source mem gz cpu
Haskell GHC #2 7,592 403 5.33
Haskell GHC #4 4,536 987 5.69
F# .NET #2 33,212 853 5.80
F# .NET #4 34,468 732 5.80
mandelbrot
source mem gz cpu
Haskell GHC #3 51,516 1981 5.64
F# .NET #6 66,476 933 14.65
F# .NET #5 66,724 897 15.54
F# .NET 66,700 877 15.67
Haskell GHC #2 46,620 782 26.22
Haskell GHC 517,272 621 41.62
pidigits
source mem gz cpu
F# .NET #6 34,380 905 0.80
F# .NET #4 35,412 874 1.28
Haskell GHC #6 17,832 360 1.71
Haskell GHC #4 17,796 348 1.95
Haskell GHC #2 17,916 585 2.36
Haskell GHC #3 17,796 379 2.37
Haskell GHC 18,092 460 2.40
Haskell GHC #5 12,900 928 100.41
regex-redux
source mem gz cpu
Haskell GHC #3 403,240 2213 2.25
F# .NET #7 1,219,132 599 5.82
F# .NET #6 1,061,172 611 7.26
fasta
source mem gz cpu
Haskell GHC #4 41,512 2013 2.74
Haskell GHC #6 8,332 1882 3.31
F# .NET #3 79,888 1350 4.13
F# .NET #4 57,276 1342 5.84
Haskell GHC #2 431,104 1319 16.27
Haskell GHC #5   Make Error  
Haskell GHC   Make Error  
Haskell GHC #3   Make Error  
k-nucleotide
source mem gz cpu
F# .NET #6 183,708 1907 12.55
F# .NET #2 198,604 1926 16.92
Haskell GHC #3 537,888 2261 37.64
Haskell GHC 541,916 1059 81.88
Haskell GHC #2 694,340 1486 83.25
reverse-complement
source mem gz cpu
Haskell GHC #4 507,144 1041 3.51
F# .NET #5 1,030,932 1140 4.29
F# .NET #4 1,030,720 1139 4.43
Haskell GHC #2 3,531,324 998 6.44
binary-trees
source mem gz cpu
Haskell GHC #8 436,024 799 9.77
Haskell GHC #7 549,592 811 11.30
Haskell GHC #6 454,300 592 11.52
Haskell GHC #2 440,892 491 13.54
Haskell GHC 683,156 494 15.26
F# .NET #7 1,398,648 516 15.62
Haskell GHC #5 681,832 561 15.65
Haskell GHC #3 683,828 538 16.02
Haskell GHC

The Glorious Glasgow Haskell
Compilation System,
version 9.2.1

F# .NET

.NET SDK 6.0.101
Host Version: 6.0.1;
Commit: 3a25a7f1cc
<ServerGarbageCollection>true