Repository navigation
Async and JIT tiering - #5349
Merged
Merged
Conversation
Use async GlobalSetup/GlobalCleanup/ArgumentsSource. Re-enable concurrent collection benchmarks.
LoopedBard3
requested review from
DrewScoggins
and
a balanced review from Copilot
November 4, 2026 23:00
Contributor
There was a problem hiding this comment.
🔵 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
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.