Skip to content

Refactor System.Collections/Sort and add Span test cases#1400

Closed
nietras wants to merge 9 commits intodotnet:mainfrom
nietras:sort-span
Closed

Refactor System.Collections/Sort and add Span test cases#1400
nietras wants to merge 9 commits intodotnet:mainfrom
nietras:sort-span

Conversation

@nietras
Copy link
Contributor

@nietras nietras commented Jul 20, 2020

As part of the dotnet/runtime#39543 we need this to fully cover and detail sorting code paths and scenarios. Includes floating point benchmarks for completeness. cc: @jkotas @stephentoub

This also replaces the same invocations per iteration count for all scenarios with a per test case scenario that meant some of the benchmarks were unreliable or took "too long".

It doesn't appear NETCOREAPP5_0 is defined, how can we specify this so Span tests only included for that?

TODO:

  • Add benchmark for small strings (currently uniformly distributed length 1-50)

Base automatically changed from master to main March 18, 2021 17:12
@danmoseley
Copy link
Member

@nietras do you want to continue with this PR?

someone from @dotnet/area-system-collections can review it.

Copy link
Member

@eiriktsarpalis eiriktsarpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally don't want to change existing benchmark suites as that tends to mess our performance reporting history cc @adamsitnik

Also, Span benchmarks arguably belong in the System.Memory suites and not System.Collections. Have you checked if they define tests for sorting?

@nietras nietras closed this May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants