4 ms·
From my experience golang uses less memory than a .net app. I haven’t done a recent comparison so if someone had tested this lately and has different results I
by pragmatic 3y ago
From my experience golang uses less memory than a .net app.
I haven’t done a recent comparison so if someone had tested this lately and has different results I’d love to see it.
- metaltyphoon 3y agoWhen C# is AOT compiled, the memory footprint is roughly the same.
- banashark 3y agoDo you have any reference for this? I'm very curious to see how they managed to pull this off since from my knowledge of the development patterns, .net has historically been much more allocation-heavy (not that it isn't very efficient with allocated data).
- etra0 3y agoDo you have any resources? I was looking for similar benchmarks but couldn't find anything conclusive. I found the benchmark game [1] but only had .net 7 AoT (not .net 8) benchmarks and memory consumption seems too high. I'd ditch golang on a pinch as soon as I can use a decent type system, and C# seems like a great alternative. Crystal would be my ideal but its compiler is still too slow, sadly. [1] https://programming-language-benchmarks.vercel.app/csharp-vs-go https://programming-language-benchmarks.vercel.app/csharp-vs...