Skip to content

[perf-improver] Monthly Activity 2026-07 #9604

Closed

Description

@github-actions

Activity for July–August 2026

Suggested Actions for Maintainer

  • Review PR #aw_pr_paramless: Cache TestMethodIdentifierProperty for parameterless tests in ParsedManagedName to eliminate per-execution allocation in retry/re-run scenarios - Review

Performance Opportunities Backlog

  1. DotnetTestHttpClient: new byte[1] trailing-byte check → ReadByte(). Very low priority.
  2. SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription: new StringBuilder() per slow-test event. Very low priority.
  3. AnsiTerminal.StopUpdate(): _stringBuilder.ToString() on every flush. Blocked by IConsole + netstandard2.0 compat.
  4. OpenTelemetryResultHandler.GetFullyQualifiedName(): string allocation per test result — only matters with OTel enabled; low priority.

The hot paths are now well-optimized; backlog items are very low priority.

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: 11.0.100-preview.7.26376.106 (bootstrapped into .dotnet/ by build script)

Run History

2026-08-01 - Run

  • 🔍 Surveyed codebase for new hot-path allocation opportunities (all remaining backlog items confirmed very low priority)
  • 🔧 Created PR #aw_pr_paramless: cache TestMethodIdentifierProperty in ParsedManagedName for parameterless tests — eliminates 1 allocation per retry/re-run per parameterless test method

2026-07-31 - Run

2026-07-30 - Run

  • 🔍 Identified allocation opportunities in MSTestTestNodeConverter (ManagedName parsing per execution)
  • 🔍 Confirmed TestNodeResultsState, BaseSerializer, AttributeQueryHelper already well-optimized

Earlier July 2026 Runs

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • southcentralus0.in.applicationinsights.azure.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "southcentralus0.in.applicationinsights.azure.com"

See Network Configuration for more information.

🤖 Automated content by GitHub Copilot. Generated by the Perf Improver workflow. · sonnet46 784.4 AIC · ⌖ 15.5 AIC · ⊞ 13.1K · [◷]( · ◷)
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

  1. Evangelink commented on Aug 2, 2026

    @Evangelink
    Member

    The remaining perf-improver backlog items are handled in #10384:

    • DotnetTestHttpClient new byte[1] trailing-byte probe -> reuses one instance-wide buffer (requests are serialized by _requestLock).
    • SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription -> reuses a single StringBuilder, same single-rendering-thread ownership as the backoff dictionary next to it.
    • AnsiTerminal.StopUpdate() -> unblocked. IConsole gained a Write(StringBuilder) overload that SystemConsole forwards to TextWriter.Write(StringBuilder) on .NET, so the multi-KB batched progress block is no longer copied into a fresh string on every refresh tick. netstandard2.0 / .NET Framework keep the ToString() copy behind an #if, so nothing regresses there.
    • OpenTelemetryResultHandler.GetFullyQualifiedName() -> intentionally left alone. It is one logical string build per test result on the OTel-only path; string.Concat with 5 operands, string.Join and a StringBuilder are all neutral-or-worse than what the compiler already emits for the interpolation. Dropping it from the backlog rather than churning the code.

    That leaves the backlog empty apart from the OTel entry, which is closed out as won't-fix above.

  2. Evangelink commented on Aug 2, 2026

    @Evangelink
    Member

    Update after two review rounds on #10384 - one backlog item was walked back:

    • DotnetTestHttpClient new byte[1] -> won't fix. Hoisting it to an instance field was reverted. It saved one ~24-byte allocation per RPC on a path that already allocates a linked CTS, streams, ByteArrayContent and an HttpRequestMessage, and it coupled correctness to requests staying serialized by _requestLock forever. Not a good trade.
    • SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription -> done, with the builder created lazily so a healthy run that never surfaces a slow test still allocates nothing.
    • AnsiTerminal.StopUpdate() -> done / unblocked, as described above.
    • OpenTelemetryResultHandler.GetFullyQualifiedName() -> won't fix, as described above.

    Net result: the two items with a real measurable win are fixed, the two negligible ones are closed out as won't-fix, and the backlog is empty.

  3. Evangelink commented on Aug 3, 2026

    @Evangelink
    Member

    Superseded by #10381 (the August tracker) and now fully resolved, so closing.

    Reviewing what this issue still had open:

    The August tracker #10381 has an empty backlog, so nothing carries forward from July.

    Unrelated cleanup while here: this issue carried three malformed labels ([area/performance, type/automation], performance) produced by a labels string being applied instead of a list. Removed. The repo has 13 such junk labels in total; see the note on #10382.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/performanceRuntime / build performance / efficiency.type/automationCreated or maintained by an agentic workflow.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions