Skip to content

Async and JIT tiering - #5349

Merged
LoopedBard3 merged 1 commit into
dotnet:mainfrom
timcassell:async-and-tiering
Nov 11, 2026
Merged

LoopedBard3 merged 1 commit into
dotnet:mainfrom
timcassell:async-and-tiering

Conversation

@timcassell

Copy link
Copy Markdown
Contributor

Follow-up from #5348 (didn't include these changes from #5279).

Fixes #5092.

Use async GlobalSetup/GlobalCleanup/ArgumentsSource.
Force JIT tiering in the recommended config and drop the warmup stage.
Re-enable concurrent collection benchmarks.

Use async GlobalSetup/GlobalCleanup/ArgumentsSource.
Re-enable concurrent collection benchmarks.
@LoopedBard3 LoopedBard3 self-assigned this Nov 4, 2026
@LoopedBard3
LoopedBard3 requested review from DrewScoggins and a balanced review from Copilot November 4, 2026 23:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Runtime validation was unavailable, leaving the suite-wide warmup removal and forced-tiering policy unverified for result stability and execution cost across supported runtimes.

No open issues 🎉

What changed in this PR

Completes the async and JIT-tiering changes deferred from #5348, updating the microbenchmark harness and re-enabling the concurrent collection benchmarks disabled under #5092.

Changes:

  • Forces JIT tier promotion in the recommended configuration, sets warmup iterations to zero, and removes benchmark-specific warmup overrides.
  • Converts HTTP cleanup, SSL setup, and TLS protocol discovery to asynchronous execution.
  • Removes concurrent collection benchmark disabling filters while retaining the existing AOT restriction.
File Description
src/​harness/​BenchmarkDotNet.Extensions/​RecommendedConfig.cs Forces JIT tiering and disables warmup iterations.
src/​benchmarks/​micro/​runtime/​Span/​Sorting.cs Removes the sorting warmup override.
src/​benchmarks/​micro/​Program.cs Removes commentary; retains the asynchronous entry point.
src/​benchmarks/​micro/​libraries/​System.Threading.Tasks.Extensions/​Perf.ValueTask.cs Removes ValueTask warmup overrides.
src/​benchmarks/​micro/​libraries/​System.Net.Security/​SslStreamTests.Protocols.cs Makes TLS capability discovery and argument enumeration asynchronous.
src/​benchmarks/​micro/​libraries/​System.Net.Security/​SslStreamTests.cs Awaits SSL authentication and pipe setup.
src/​benchmarks/​micro/​libraries/​System.Net.Http/​Perf.WinHttpHandler.cs Makes global cleanup asynchronous.
src/​benchmarks/​micro/​libraries/​System.Net.Http/​Perf.SocketsHttpHandler.cs Makes global cleanup asynchronous.
src/​benchmarks/​micro/​libraries/​System.Collections/​Sort.cs Removes the collection sorting warmup override.
src/​benchmarks/​micro/​libraries/​System.Collections/​Concurrent/​AddRemoveFromSameThreads.cs Re-enables benchmarks and removes warmup overrides.
src/​benchmarks/​micro/​libraries/​System.Collections/​Concurrent/​AddRemoveFromDifferentThreads.cs Re-enables benchmarks, retaining the AOT exclusion.
src/​benchmarks/​micro/​libraries/​System.Buffers/​Base64Tests.cs Removes the in-place Base64 warmup override.

Review effort: Balanced

@LoopedBard3
LoopedBard3 merged commit 262db80 into dotnet:main Nov 11, 2026
72 checks passed
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.

Fix hang when running AddRemoveFromSameThreads and AddRemoveFromDifferentThreads in BDN 0.16

3 participants