The Computer Language
Benchmarks Game

C# .NET Core programs versus Go

by benchmark task performance

binary-trees
source secs mem gz cpu cpu load
C# .NET Core 8.26 877,360 810 26.13 80% 80% 81% 79%
Go 34.42 268,188 654 130.26 96% 94% 95% 94%
k-nucleotide
source secs mem gz cpu cpu load
C# .NET Core 11.47 189,036 2044 40.36 96% 95% 74% 87%
Go 14.98 147,704 1722 55.60 97% 88% 92% 95%
fasta
source secs mem gz cpu cpu load
C# .NET Core 2.09 65,216 2098 7.97 95% 99% 95% 95%
Go 2.17 3,404 1358 5.83 58% 69% 66% 77%
n-body
source secs mem gz cpu cpu load
C# .NET Core 21.37 34,120 1542 21.36 100% 1% 0% 1%
Go 21.47 1,568 1200 21.47 78% 1% 1% 22%
fannkuch-redux
source secs mem gz cpu cpu load
C# .NET Core 14.44 32,724 1049 55.77 97% 92% 98% 99%
Go 14.44 1,560 900 57.53 100% 100% 100% 100%
spectral-norm
source secs mem gz cpu cpu load
C# .NET Core 4.07 32,608 878 15.82 99% 97% 97% 97%
Go 3.94 2,320 548 15.69 99% 100% 100% 99%
mandelbrot
source secs mem gz cpu cpu load
C# .NET Core 5.83 65,344 794 22.93 99% 98% 98% 99%
Go 5.48 30,704 905 21.74 100% 100% 99% 100%
regex-redux
source secs mem gz cpu cpu load
C# .NET Core 30.74 1,483,936 659 110.24 92% 89% 90% 88%
Go 28.49 318,144 802 59.96 74% 48% 41% 48%
reverse-complement
source secs mem gz cpu cpu load
C# .NET Core 0.78 281,492 1621 1.84 71% 42% 90% 42%
Go 0.54 132,404 1338 0.91 25% 28% 58% 60%
pidigits
source secs mem gz cpu cpu load
C# .NET Core 3.03 35,360 1026 3.03 1% 0% 0% 100%
Go 2.03 9,428 603 2.03 0% 0% 0% 100%
C# .NET Core

2.0.2 a04b4bf512
"System.GC.Server": true

Go

go version go1.9 linux/amd64