-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential performance regression in Array.Sort for arrays of reference types #59149
Comments
Tagging subscribers to this area: @dotnet/area-system-runtime Issue Detailsgit clone https://github.com/dotnet/performance.git
py .\scripts\benchmarks_ci.py -f net5.0 net6.0 --filter "System.Collections.Sort<IntClass>.Array" --bdn-arguments "--miniterationcount 100 --maxiterationcount 101 --outliers dontremove --memoryrandomization true" Both Windows and Unix are affected:
|
There are more array sorting-related benchmarks that have regressed across multiple configs, so the better config would be: --filter 'System.Collections.Sort*Array*' |
Is it possible to isolate a commit range? Seems like a sharp change. Might help see whether PGO is a suspect or not. |
@DrewScoggins Could you help narrow down the commit range for this regression? |
There is a PGO update in there, as well as an improvement for division by unsigned constants. Those are the only two things that look like they could be making a difference. |
@AndyAyersMS Do you think PGO could be the cause of this based on Drew's findings. (Thanks, @DrewScoggins!) Since this was all the way back in May, I'm going to go ahead and move this to 7.0.0, as I can't imagine we'd change anything at this point in 6.0 for this regression. |
Both Windows and Unix are affected:
https://pvscmdupload.blob.core.windows.net/reports/allTestHistory%2frefs%2fheads%2fmain_x64_Windows%2010.0.18362%2fSystem.Collections.Sort(IntClass).Array(Size%3a%20512).html
https://pvscmdupload.blob.core.windows.net/reports/allTestHistory%2frefs%2fheads%2fmain_x64_ubuntu%2018.04%2fSystem.Collections.Sort(IntClass).Array(Size%3a%20512).html
The text was updated successfully, but these errors were encountered: