Talk type: Talk

Loop alignment and performance stability in .NET 6

  • Talk in English
Presentation pdf

.NET team has thousands of Microbenchmarks that are run several times daily on the commits to check that there was 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 He will talk and demonstrate C# and assembly code and is intended for medium to advance developers.


Invited experts