The Computer Language
Benchmarks Game

Go versus C# .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.

n-body
source secs mem gz busy cpu load
Go 21.26 1,888 1310 22.28 3% 0% 100% 2%
C# .NET Core 21.74 34,000 1305 22.85 0% 0% 32% 73%
mandelbrot
source secs mem gz busy cpu load
Go 5.55 30,300 894 22.11 99% 99% 99% 100%
C# .NET Core 5.60 65,320 816 22.00 98% 97% 99% 99%
pidigits
source secs mem gz busy cpu load
Go 2.04 8,724 603 2.36 20% 32% 33% 31%
C# .NET Core 1.85 33,292 1168 1.91 2% 2% 99% 0%
reverse-complement
source secs mem gz busy cpu load
Go 3.73 826,488 611 4.10 88% 6% 2% 14%
C# .NET Core 3.16 1,029,156 1621 7.90 57% 77% 63% 53%
fasta
source secs mem gz busy cpu load
Go 2.11 4,228 1358 5.66 69% 65% 64% 70%
C# .NET Core 1.69 75,044 1691 6.28 90% 91% 96% 95%
fannkuch-redux
source secs mem gz busy cpu load
Go 14.93 3,484 969 59.67 100% 100% 100% 100%
C# .NET Core 11.41 32,388 1225 45.24 99% 100% 99% 99%
spectral-norm
source secs mem gz busy cpu load
Go 4.12 2,704 548 15.93 96% 98% 97% 96%
C# .NET Core 2.16 35,800 764 8.21 94% 93% 99% 94%
k-nucleotide
source secs mem gz busy cpu load
Go 12.67 150,584 1722 47.44 95% 90% 93% 96%
C# .NET Core 5.63 184,992 2044 19.00 80% 88% 96% 73%
regex-redux
source secs mem gz busy cpu load
Go 7.21 326,552 810 10.19 22% 18% 87% 14%
C# .NET Core 2.82 365,156 1869 4.97 27% 86% 26% 38%
binary-trees
source secs mem gz busy cpu load
Go 25.19 397,116 1007 86.01 88% 86% 84% 83%
C# .NET Core 5.77 844,952 753 20.47 93% 87% 89% 86%
Go

go version go1.14 linux/amd64

C# .NET Core

.NET Core SDK 3.1.201
Host Version: 3.1.3; Commit: 4a9f85e9f8
<ServerGarbageCollection>true
<ConcurrentGarbageCollection>true