Skip to content

Potential performance regression in Array.Sort for arrays of reference types #59149

Closed

Description

@adamsitnik
git 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:

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

image

https://pvscmdupload.blob.core.windows.net/reports/allTestHistory%2frefs%2fheads%2fmain_x64_ubuntu%2018.04%2fSystem.Collections.Sort(IntClass).Array(Size%3a%20512).html

image

Activity

  1. ghost added
    untriaged
    on Sep 15, 2021
  2. adamsitnik commented on Sep 15, 2021

    @adamsitnik
    MemberAuthor

    There are more array sorting-related benchmarks that have regressed across multiple configs, so the better config would be:

    --filter 'System.Collections.Sort*Array*'
  3. danmoseley commented on Sep 17, 2021

    @danmoseley
    Contributor

    Is it possible to isolate a commit range? Seems like a sharp change. Might help see whether PGO is a suspect or not.

  4. added
    needs-further-triage
    and removed
    untriaged
    on Sep 30, 2021
  5. added this to the 6.0.0 milestone on Sep 30, 2021
  6. jeffhandley commented on Oct 7, 2021

    @jeffhandley
    Member

    @DrewScoggins Could you help narrow down the commit range for this regression?

  7. DrewScoggins commented on Oct 7, 2021

    @DrewScoggins
    Member
  8. DrewScoggins commented on Oct 7, 2021

    @DrewScoggins
    Member

    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.

  9. jeffhandley commented on Oct 18, 2021

    @jeffhandley
    Member

    @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.

  10. modified the milestones: 6.0.0, 7.0.0 on Oct 18, 2021
  11. ghost locked as resolved and limited conversation to collaborators on Sep 8, 2022
  12. removed
    needs-further-triage
    on Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Runtimetenet-performance

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions