.NET 7 has string concatenation related performance regressions

I quite often post about performance improvements from one version of .NET to another BUT sometimes performance regressions happen.

I had ran the below benchmarks for .NET 5 v .NET 6 just before .NET 6 came out in November 2021 and there was a lot of improvements. After running them again for .NET 6 v .NET 7 I noticed some pretty big regressions, sometimes in the order of 20%.

I’m not sure if these are known regressions.

Can anyone try and re-create? The Gist with the benchmark code is 👇🏻 …
Simple String Concatenation .NET 6 v .NET 7 (github.com)

Leave a Reply

Your email address will not be published. Required fields are marked *