by andyayers · 1y ago · 0 comments
The OSR transition happens here, but between .net8 and .net9 some aspects of loop optimizations in OSR code regressed.
With BenchmarkDotNet it may not be obvious which scenario you intend to measure and which one you end up measuring. BDN runs the benchmark method enough times to exceed some overall "goal" time for measuring (250 ms I think). This may require many calls or may just require one.