Skip to content

[Perf] Windows/x64: 1 Regression on 8/10/2026 5:40:28 AM +00:00 #132145

Closed

Description

@performanceautofiler

Run Information

Name Value
Architecture x64
OS Windows 10.0.22631
Queue ViperWindows
Baseline c668fd41fd95a3b52c783bfdc761604712010ba3
Compare ab094c18ba7f4a96d145afd8b34f965c5c3ef31d
Diff Diff
Configs CompilationMode:tiered, RunKind:micro

Regressions in System.IO.Tests.BinaryWriterTests

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio
8.40 ns 10.03 ns 1.19 0.02 False

graph
Test Report

Repro

General Docs link: https://github.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md

git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.IO.Tests.BinaryWriterTests*'
Details

System.IO.Tests.BinaryWriterTests.WriteHalf

ETL Files

Histogram

JIT Disasms

Docs

Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository

Activity

  1. added
    runtime-coreclr
    untriaged
    on Aug 11, 2026
  2. LoopedBard3 commented on Aug 11, 2026

    @LoopedBard3
    Member

    🔍 Automated Triage Analysis

    Summary: A single confirmed regression — System.IO.Tests.BinaryWriterTests.WriteHalf slowed +19.4% (8.40 ns → 10.03 ns) — is attributed with high confidence to commit 98037590 ("Accelerate System.Half arithmetic and conversions with FP16", #130512). It is the only commit in the 6-commit range touching the System.Half write path, its authored timestamp matches the regression date exactly, and the historical series sho

    Finding Confidence: 5/5 (analysis accuracy)
    Regression Confidence: 5/5 (likelihood of true regression)

    🤖 Proposed Next Actions: Uncertain — flag for re-triage — 1 done, 1 dry-run (rule R5_look_again — see Full Analysis for the table).

    📊 Full Analysis (click to expand)

    Summary: A single confirmed regression — System.IO.Tests.BinaryWriterTests.WriteHalf slowed +19.4% (8.40 ns → 10.03 ns) — is attributed with high confidence to commit 98037590 ("Accelerate System.Half arithmetic and conversions with FP16", #130512). It is the only commit in the 6-commit range touching the System.Half write path, its authored timestamp matches the regression date exactly, and the historical series shows a clean, extremely stable step change (z=26.2). Finding confidence 5/5, regression confidence 5/5.

    Issue Overview

    • Issue: [Perf] Windows/x64: 1 Regression on 8/10/2026 5:40:28 AM +00:00 #132145 - [Perf] Windows/x64: 1 Regression on 8/10/2026 5:40:28 AM +00:00
    • Date: 2026-08-10 | Queue: Windows.11.Amd64.Viper.Perf (ViperWindows) | OS/Arch: Windows 10.0.22631/x64
    • Commits: c668fd41 → ab094c18 (6 commits)
    • Labels: untriaged, perf-regression, os-windows, arch-x64, branch-refs/heads/main, runtime-coreclr, kind-micro, compilationmode-tiered, runkind-micro
    • Runtime stack: Desktop + CoreCLR (tiered, micro)
    • Historical Data: Available (298 prior runs, 6 after-runs; 304 total examined)

    Test Analysis

    Test Name Baseline Compare Δ% μ σ n z Thresh% Noise? Assessment
    System.IO.Tests.BinaryWriterTests.WriteHalf 8.399 ns 10.028 ns +19.39% 8.405 ns 0.062 298 26.18 5% N Step change, historically ultra-stable (CV=0.74%)

    Legend: μ=mean, σ=stddev, n=runs, z=z-score, Thresh%=adaptive threshold

    Finding Confidence: 5/5 - Comprehensive historical data (298 before-runs, CV=0.74%), all 6 after-runs tightly clustered (10.008–10.028), unambiguous step change. Cause commit timestamp matches regression date exactly.

    Candidate Stack Relevance

    Commit Touched Paths (summary) Relevance Notes
    98037590 src/libraries/System.Private.CoreLib/.../System/Half.cs, src/coreclr/jit/* Relevant Directly rewrites System.Half managed code + JIT Half conversion/arithmetic codegen — exactly the path exercised by WriteHalf.
    14b601ec src/.../InteropServices/MemoryMarshal.* Shared GetArrayDataReference sharing; generic BCL, no Half-specific path.
    d22185a6 System.IO.Compression.ZipFile/* LessLikely Zip extraction only; unrelated to BinaryWriter.
    d27915ef System.Net.Quic/tests/* LessLikely QUIC test-only change.
    0d8e5f7d eng/*, .config/dotnet-tools.json LessLikely Helix job monitor bump; build infra.
    ab094c18 eng/testing/BrowserVersions.props LessLikely Chrome-for-testing bump; wasm test infra only.

    Confirmed Regressions

    System.IO.Tests.BinaryWriterTests.WriteHalf (+19.4%)

    • Delta: 8.399 ns → 10.028 ns (+19.39%)
    • Historical Context: μ=8.405 ns (σ=0.062, n=298); z-score=26.18; adaptive threshold=5%; CV=0.74%
    • Assessment: Step change — permanent level shift from ~8.40 to ~10.02 across all 6 after-runs; historically ultra-stable baseline.
    • Finding Confidence: 5/5 - Excellent historical data, tight after-run clustering, clear step change.
    • Regression Confidence: 5/5 - Extreme outlier (z=26), surgical stack-relevant change, exact timestamp match with the sole Half-related commit.
    • Likely Cause: 98037590 - "Accelerate System.Half arithmetic and conversions with FP16 (Accelerate System.Half arithmetic and conversions with FP16 #130512)"
      • Affected Areas: JIT (Half codegen / hardware intrinsics), BCL (System.Half)
      • Stack Relevance: Relevant
      • Rationale: This commit rewrites System.Half (src/libraries/System.Private.CoreLib/src/System/Half.cs, +52/−12) and the JIT's Half arithmetic/conversion codegen (importercalls.cpp +681, emitxarch.cpp, hwintrinsic*, etc.), binding Half onto internal NI_Fp16_* intrinsics. WriteHalf writes a Half value via BinaryWriter, which exercises the Half→bits/conversion path this commit changes. The commit's authored/committed timestamp (2026-08-10T05:40:28Z) is identical to the reported regression date, and it is the only commit in the range touching Half. Although the change is intended to accelerate Half, on this Viper/x64 host the new codegen path evidently regresses the specific WriteHalf micro-scenario (e.g., new intrinsic/conversion sequence or ISA-gated fallback overhead) — worth a targeted look at the emitted code for the write path.
      • Candidates Considered:
        • 14b601ec - MemoryMarshal.GetArrayDataReference sharing; generic, not Half-specific.
        • d22185a6 - Zip extraction fix; unrelated area.
        • Remaining 3 commits are test/build-infra only (QUIC tests, Helix bump, Chrome bump).
    • Verification Status: Not verified (attribution unambiguous from timing + sole stack-relevant change; RunWithBuildAtHash optional to confirm emitted-code hypothesis).

    Open Questions

    • Historical Data: Strong (298 before-runs, CV=0.74%); no gaps.
    • Confidence Limitations: None material — single Half-related commit in a 6-commit range.
    • Verification Needed: Optional — confirm via RunWithBuildAtHash at the parent (14b601e) vs. cause (9803759) commits and inspect JIT disasm for the WriteHalf conversion path.
    • Bisection Status: Not performed (range already narrowed to one plausible commit).

    Recommended Actions

    1. Source review - Review 98037590 focusing on the Half→bits / Half↔float conversion codegen used by the BinaryWriter.Write(Half) path; the acceleration change appears to regress this specific micro-scenario.
    2. Verification - Run RunWithBuildAtHash on parent 14b601ec vs. cause 98037590 for System.IO.Tests.BinaryWriterTests.WriteHalf to confirm the +19% delta reproduces.
    3. Profiling - Collect JIT disasm / hardware counters (collectHardwareCounters=true) for WriteHalf to identify whether ISA gating or an extra conversion sequence is responsible.

    Bisection Results

    Test Status Culprit Commit Relevance Reported Diff (issue) Bisected Diff (at culprit)
    WriteHalf ✅ Culprit found 98037590c8dd UNCERTAIN 8.4→10.0 ns (+19%) 8.4→10.0 ns (+19%)

    Total bisection time: 0s
    Tests measured: 1/1
    Culprit found: 1/1

    System.IO.Tests.BinaryWriterTests.WriteHalf

    • Culprit: 98037590c8dd
    • Relevance: UNCERTAIN
    • Explanation: 14b601e measures at baseline (8.39 ns, good) and 9803759 measures at the regressed level (10.02 ns, bad). These are adjacent in the window, so 9803759 is the single good→bad transition. Without inspecting the commit's contents I cannot confirm whether its changes plausibly affect BinaryWriter.WriteHalf, so relevance is uncertain.
    Bisection details
    • Culprit: 98037590c8dd
    • Relevance: UNCERTAIN
    • Baseline: 8.399 ns
    • Culprit value: 10.017 ns

    Per-commit measurements (oldest → newest) (ns)

    # Commit Result Measurement
    0 c668fd41fd95 baseline/good 8.399 ns
    1 14b601ec5edf good 8.387 ns
    2 98037590c8dd culprit/bad 10.017 ns
    4 d27915efe3b2 bad 10.009 ns
    6 ab094c18ba7f head/bad 10.009 ns

    Helix jobs

    Job ID
    8d270695-12fc-4f04-b958-89e8b542b572
    ea9924d7-306b-400d-9743-0749e4bd7a53

    🤖 Proposed Next Actions

    Rule: R5_look_again — Uncertain — flag for re-triage.

    Confidence is sufficient (finding 5/5, regression 5/5), but no bisection result had commit_relevance = RELATED without an alignment warning.

    # Action Status Details
    1 Add label ✅ Done Look Again
    2 Remove label ⏭️ Skipped (dry-run) untriaged

    🦆 Pre-bisection Re-analysis (advisory)

    ✅ Agrees with the pre-bisection plan — advisory only, not applied

    Rationale: The single finding for WriteHalf is classified as a non-noise regression with maximal finding and change confidence and a relevant stack, so queuing exactly this one test for bisection is well-justified and no candidates warrant dropping or adding.

    This critique is advisory in the current configuration and did not change which tests were bisected.

    🦆 Re-analysis (advisory)

    ⚠️ Disputes the analysis — advisory only, not applied

    Flags: overconfident, uncertain-bisection-relevance

    Rationale: The bisection converged successfully on 9803759 so the culprit is supported and this is reasonably actionable, but its relevance is flagged UNCERTAIN and no z-score/variance/after-value evidence is shown, so maxing both scores at 5/5 is a touch overconfident and each should drop to 4.

    Suggested confidence: Finding Confidence → 4/5; Change Confidence → 4/5 (advisory — not applied)

    This critique is advisory in the current configuration and did not change the confidences, culprit, or proposed actions above.


    Generated by PerfTriageAgent on 2026-08-11 12:02 UTC

  3. added
    tenet-performance
    tenet-performance-benchmarks
    on Aug 11, 2026
  4. added
    area-CodeGen-coreclr
    on Aug 11, 2026
  5. DrewScoggins commented on Aug 11, 2026

    @DrewScoggins
    Member

    Bisected to #130512.

    This does show improvement on our Arm64 machines however.

    Image
  6. dotnet-policy-service commented on Aug 11, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  7. removed
    untriaged
    on Aug 11, 2026
  8. LoopedBard3 commented on Aug 13, 2026

    @LoopedBard3
    Member
  9. LoopedBard3 commented on Aug 18, 2026

    @LoopedBard3
    Member

    Related Regressions — issues attributed to the same commit:

    Augmented by PerfTriageAgent.

  10. added this to the 11.0.0 milestone on Aug 24, 2026
  11. added a commit that references this issue on Sep 14, 2026
    96b8763
  12. added a commit that references this issue on Sep 18, 2026
    3654567
  13. locked and limited conversation to collaborators on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-x64area-CodeGen-coreclros-windowsruntime-coreclrtenet-performancetenet-performance-benchmarks

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions