.NET team has thousands of Microbenchmarks that are run several times daily on the commits to check that there is no performance regression introduced. Some benchmarks are instable and it is hard to understand if the metric shows real regression or is it just noisy. In .NET 6, the team investigated the underlying problem and added various mitigations like code alignment that would not just benefit benchmarks but real-world code.
In this talk, Kunal will briefly talk about how the team troubleshoot the instable performance numbers, and then deep dive in "automatic alignment of loops" — one of the features added in .NET 6 to mitigate such instability. Speaker wrote about this feature a few months back on https://devblogs.microsoft.com/dotnet/loop-alignment-in-net-6/. He will talk and demonstrate C# and assembly code and is intended for medium to advance developers.