The Computer Language
Benchmarks Game

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

reverse-complement
source secs mem gz busy cpu load
Go 1.43 1,467,392 1338 2.67 48% 38% 55% 45%
C# .NET 1.48 959,848 1310 4.18 30% 63% 93% 96%
fannkuch-redux
source secs mem gz busy cpu load
Go 8.28 2,428 969 33.10 100% 100% 100% 100%
C# .NET 8.40 30,788 1225 33.30 100% 99% 99% 99%
pidigits
source secs mem gz busy cpu load
Go 0.86 8,980 683 0.88 2% 0% 0% 100%
C# .NET 0.83 31,700 1168 1.02 1% 2% 21% 98%
fasta
source secs mem gz busy cpu load
Go 1.20 11,364 1404 3.67 80% 75% 73% 77%
C# .NET 1.16 96,136 1691 4.31 96% 95% 92% 89%
mandelbrot
source secs mem gz busy cpu load
Go 3.75 34,848 894 14.94 99% 100% 99% 99%
C# .NET 3.14 64,716 1974 12.28 99% 97% 97% 97%
n-body
source secs mem gz busy cpu load
Go 6.38 1,800 1200 6.44 0% 0% 0% 100%
C# .NET 4.86 32,760 1742 4.96 0% 1% 100% 2%
spectral-norm
source secs mem gz busy cpu load
Go 1.43 2,088 548 5.67 99% 99% 99% 99%
C# .NET 0.82 34,720 764 2.98 91% 88% 89% 98%
k-nucleotide
source secs mem gz busy cpu load
Go 8.29 160,156 1607 32.00 96% 96% 98% 96%
C# .NET 3.28 182,680 2044 11.09 87% 83% 73% 94%
regex-redux
source secs mem gz busy cpu load
Go 3.61 374,916 810 5.95 47% 34% 20% 64%
C# .NET 1.43 320,400 1869 2.67 33% 39% 85% 31%
binary-trees
source secs mem gz busy cpu load
Go 6.74 280,176 701 26.36 98% 98% 98% 97%
C# .NET 2.35 807,172 753 7.82 83% 88% 84% 78%
Go

go version go1.15.2 linux/amd64

C# .NET

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