Repository navigation
Description
Activity for October 2026
Suggested Actions for Maintainer
No suggested actions at this time.
Performance Opportunities Backlog
PrivateObject.Helpers.cs BuildGenericMethodCacheForType(net-framework-only) - rebuilds cache perPrivateObjectinstance construction. Medium risk, low priority.TestExecutionManager.ParallelExecution.csper-test array wrapping for parallel scheduling chunks - inherent design, medium risk/effort.AggregatedConfigurationindexer scan - no per-key memoization, but consumers already cache on first access. Not a real hot path.ServerTestHost.RequestExecution.csSelect+ToArray - per-request, not per-test.RetryArtifactProcessor.csGroupBy/Count double-enumeration - measured with real data: GroupBy ~1.5us/op vs manual dict ~0.5-1.1us/op, called O(1) times per run. Confirmed not worth fixing.RetryOrchestrator.ArtifactRecovery.csAny() per-manifest-line - low volume.
All items above have been re-verified multiple times across runs and remain low priority / not worth fixing. The codebase has been in a stable, well-optimized state for runtime hot paths since the Assert.That fix (PR #11561, merged 2026-09-27) - 29 consecutive scan cycles with no new fixable hot-path finding as of this run.
Discovered Commands
./build.sh # restore + build (Debug)
./build.sh -test # build + unit tests
./build.sh -pack # produce NuGet packages
./build.sh -pack -test -integrationTest # full suite (slow)
# SDK: .NET 12 preview (bootstrapped via ./build.sh into .dotnet/)
# Note: MSTestAdapter.UnitTests and other net48-targeting tests can't run in Linux env (no .NET Framework SDK)Benchmark/perf infra: test/Performance/MSTest.Performance.Runner (end-to-end process timing), test/Performance/MSTest.Performance.Benchmarks (BenchmarkDotNet allocation microbenchmarks), .github/workflows/perf-timing-nightly.yml (nightly run with rolling-baseline regression detection for both end-to-end timings via compare_perf_timings.py and allocation microbenchmarks via compare_benchmark_allocations.py, added PR #11743, merged 2026-10-05).
Run History
2026-10-20 - Run
- 🔍 Reviewed all commits merged since last run (06:19 UTC 10-19), incl. "Consolidate trailing CancellationToken detection" (Consolidate trailing CancellationToken detection #12021) - a refactor deduplicating the CancellationToken-parameter helpers into shared
TestDataSourceUtilities, same O(1) array-length checks, no new allocation introduced - 📊 Confirmed perf-timing-nightly.yml run TestContext.Writeline does not output messages. #120 succeeded (16th consecutive clean nightly run since benchmark-regression-detection infra merged)
- No open perf-improver PRs, no performance-labeled issues, no action needed - 29th consecutive clean scan cycle since the Assert.That fix (PR [perf-improver] Avoid IL-emitting Compile() in Assert.That fast path #11561)
2026-10-19 - Run
- 🔍 Reviewed 9 commits merged since last run (06:12 UTC 10-18), incl. the new "Allow trailing CancellationToken parameters in MSTest tests" feature (Allow trailing CancellationToken parameters in MSTest tests #11991) - inspected its added per-invocation argument-resolution code directly: O(1) array-length arithmetic and a single conditional array copy, not a new hot loop, no LINQ/boxing introduced
- 📊 Confirmed perf-timing-nightly.yml run CollectSourceInformation awareness to query source information #119 succeeded (15th consecutive clean nightly run since benchmark-regression-detection infra merged)
- No open perf-improver PRs, no performance-labeled issues, no action needed - 28th consecutive clean scan cycle since the Assert.That fix (PR [perf-improver] Avoid IL-emitting Compile() in Assert.That fast path #11561)
2026-10-18 13:33 UTC - Run
- 🔍 Checked for new commits since last run - zero merged in the 24h window (main still at e51893b); nothing new to scan
- 📊 Confirmed perf-timing-nightly.yml run Fixing up the documentation for Test Run extensibility #118 succeeded (14th consecutive clean nightly run since benchmark-regression-detection infra merged)
- No open perf-improver PRs, no performance-labeled issues, no action needed - 27th consecutive clean scan cycle since the Assert.That fix (PR [perf-improver] Avoid IL-emitting Compile() in Assert.That fast path #11561)
2026-10-17 13:32 UTC - Run
- 🔍 Reviewed ~30 commits merged since last run (06:14 UTC 10-16) - almost entirely OneLoc localization check-ins and dependabot/maestro bumps; one substantive commit (Restore missing Azure DevOps report localization resources #11988) touched only
.xlfresource files, no production code - 📊 Confirmed perf-timing-nightly.yml run Plugging in Assertion extensibility #117 succeeded (13th consecutive clean nightly run since benchmark-regression-detection infra merged)
- No open perf-improver PRs, no performance-labeled issues, no action needed - 26th consecutive clean scan cycle since the Assert.That fix (PR [perf-improver] Avoid IL-emitting Compile() in Assert.That fast path #11561)
2026-10-16 13:36 UTC - Run
- 🔍 Reviewed 25 commits merged since last run, 11 verified in depth incl. a "mechanical" NamedPipeServer partial-file split (Split NamedPipeServer into focused partial files #11948) - confirmed byte-for-byte identical hot paths, zero regressions
- 📊 Confirmed perf-timing-nightly.yml run Ability to add custom assertions. #116 succeeded (12th consecutive clean nightly run)
- 25th consecutive clean scan cycle
Earlier September-October 2026 (condensed)
- Fixes landed/merged:
TestDataSourceUtilitiesdisplay-name allocation fix (PR Reduce data-driven display name allocations #10528),TelemetryCollector.TrackAssertionCallcontention fix (PR Reduce assertion telemetry contention #10560),Assert.HasCount/IsEmptyICollection fast path (PR Optimize non-generic collection count assertions #10575),ObjectModelConverters.FixUpTestCaseAny(lambda) allocation fix (PR Optimize VSTestBridge property lookup #10586),InheritedMemberFromDifferentMSTestVersionAnalyzerLINQ reordering (PR Reorder analyzer structural checks before framework lookup #11225),DeploymentItemUtility.IsInvalidPathchar-array caching (PR [perf-improver] Cache invalid-path/filename char arrays in DeploymentItemUtility #11555, ~3.7x faster/~64B less alloc per call),Assert.Thatfast-pathCompile()replaced withCompile(preferInterpretation: true)(PR [perf-improver] Avoid IL-emitting Compile() in Assert.That fast path #11561, ~33x faster/~65% less alloc - largest win to date), benchmark-regression-detection infra for allocation microbenchmarks (PR Add rolling regression detection for allocation benchmarks #11743, merged 2026-10-05, now verified running cleanly in 16 consecutive nightly CI runs). - Numerous daily explore-agent scans across nearly every subsystem (Adapter, Platform Services/Requests/Messages/Hosts, TestFramework Assertions/Extensions, Analyzers, Platform Extensions incl. TrxReport/HtmlReport/AzureDevOpsReport/CrashDump/HangDump/Retry/Telemetry/HotReload/VSTestBridge, MSTest.Sdk build-time evaluation, Discovery/AssemblyEnumerator) found diminishing returns after the above fixes landed - the codebase has reached a stable, well-optimized baseline for runtime hot paths.
🤖 Automated content by GitHub Copilot. Generated by the Perf Improver workflow. · copilot · auto · 107.8 AIC · ⌖ 13.4 AIC · ⊞ 19.6K · [◷]( · ◷)
Comment /perf-assist to run again
Add this agentic workflow to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/perf-improver.md@main
Activity