3 ms·
Go vs. C#, part 2: Garbage Collection (2018)
- GordonS 6y agoThis article is from 2018, but the same author just published new GC benchmarks[0][1] for both .NET 5 and Go 1.15.4 - if anything, it seems the performance gulf has grown in that time! A few examples: - Single-thread raw allocations/s: .NET 5 241.25 M/s, Go 56.950 M/s - 12-thread raw allocations/s: .NET 5 2398.1 M/s, Go 519.450 M/s - 48-thread raw allocations/s: .NET 5 7745.75 M/s, Go 884.150 M/s I'm hoping the author does another blog post comparing the results in more detail, and with some visualisations. [0] https://github.com/alexyakunin/GCBurn/blob/master/results/CSharp-48C-128GB-Windows-Ryzen3960x-2020-11a.txt https://github.com/alexyakunin/GCBurn/blob/master/results/CS... [1] https://github.com/alexyakunin/GCBurn/blob/master/results/Go-48C-128GB-Windows-Ryzen3960x-2020-11a.txt https://github.com/alexyakunin/GCBurn/blob/master/results/Go...