Golang vs. C# (.NET 5.0) at Benchmarks Game
benchmarksgame-team.pages.debian.net
Golang vs. C# (.NET 5.0) at Benchmarks Game
1–10 of 114 posts
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#2Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#3Overall you can see how fast Go is, it has little optimization compare to C# and it's as fast. Compare this: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... and overly complicated C# version: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... ( avx, Intrinsics etc ... )
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#4I couldn’t find a direct C# to Rust comparison but Rust trying to compete with C++ means performance is a goal, if that’s what you are after.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#5Unfortunately developers who don’t know better judge it by it’s historical association with Windows rather than how powerful it is today.
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#6Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#7When you see how much effort it takes to C# and Java to optimize the runtime, there are a lot of people working on that. C# is fast but you see that it uses between 2 and 32 times the memory that Go needs. Overall you can see how fast Go is, it has little optimization compare to C# and it's as fast. Compare this: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... and overly complicated C# version: https:…
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#8One of the standard caveats with this particular benchmark game with respect to Go is idiomatic optimizations are prohibited. To use the btree example, Go's memory management is low latency and non-moving, so allocations are expensive--any Go programmer writing a performance-sensitive btree implementation would pre-allocate the nodes in a single allocation--an absolutely idiomatic and trivial optimization--but the benchmark game requires that the nodes are allocated one at a time. In other words, the C# version is idiomatic, but the Go version is expressly contrived to be slower--not a very useful comparison.
Mad respect for .Net though; it's really impressive, I like the direction it's going, I'm glad it exists, etc.
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#9When you see how much effort it takes to C# and Java to optimize the runtime, there are a lot of people working on that. C# is fast but you see that it uses between 2 and 32 times the memory that Go needs. Overall you can see how fast Go is, it has little optimization compare to C# and it's as fast. Compare this: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... and overly complicated C# version: https:…
I definitely have run into this, even when using 'server mode' in asp.net core. I never was able to figure out why the C# version of my POC was using so much memory, but rewriting to golang ended up using a very predictable, minimal amount of memory in comparison.
Re: Golang vs. C# (.NET 5.0) at Benchmarks Game
#10I was always under the impression that Go never had a great optimizing compiler. It was never a primary focus given the limited developer resources. I couldn’t find a direct C# to Rust comparison but Rust trying to compete with C++ means performance is a goal, if that’s what you are after. https://benchmarksgame-team.pages.debian.net/benchmarksgame/...