Skip to content

[Perf] Linux/arm64: 1 Regression on 8/5/2025 9:21:29 PM +00:00 #118494

Closed

Description

@performanceautofiler

Run Information

Name Value
Architecture arm64
OS ubuntu 22.04
Queue AmpereUbuntu
Baseline 0549417cbd2fcc2edd26f4a8f9ab07d357f34de2
Compare 5faa3467d4de01df6d601fbaaa27520c0cd507dc
Diff Diff
Configs CompilationMode:tiered, RunKind:micro

Regressions in System.Text.Tests.Perf_Encoding

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio
33.92 ns 40.60 ns 1.20 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
python3 .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Text.Tests.Perf_Encoding*'
Details

System.Text.Tests.Perf_Encoding.GetByteCount(size: 512, encName: "utf-8")

ETL Files

Histogram

JIT Disasms

Docs

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

Activity

  1. added
    os-linux
    runtime-coreclr
    untriaged
    on Aug 7, 2025
  2. removed
    untriaged
    on Aug 7, 2025
  3. added
    tenet-performance
    tenet-performance-benchmarks
    on Aug 7, 2025
  4. added
    untriaged
    on Aug 7, 2025
  5. added
    needs-area-label
    on Aug 7, 2025
  6. DrewScoggins commented on Aug 7, 2025

    @DrewScoggins
    Member

    Seems related to #116104

  7. added
    area-CodeGen-coreclr
    on Aug 7, 2025
  8. dotnet-policy-service commented on Aug 7, 2025

    @dotnet-policy-service
    Contributor

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

  9. removed
    needs-area-label
    on Aug 8, 2025
  10. 9 remaining items

  11. AndyAyersMS commented on Aug 13, 2025

    @AndyAyersMS
    Member

    That failure reason suggests some prior inlining attempt determined that the method was never inlinable and marked it as such to save us the trouble of analyzing it again later.

    I believe you, though I'm trying to figure out what the real blocker to inlining this method is by lifting the locals budget constraint. This is controlled by DOTNET_JitMaxLocalsToTrack, right? If I set this to something absurdly large, like (unsigned)-1, I still get the "too many locals" justification for the first inlining failure.

    Are you using recent builds? If not you may be hitting the fixed limit I removed in #118515.

  12. amanasifkhalid commented on Aug 14, 2025

    @amanasifkhalid
    Contributor

    Are you using recent builds? If not you may be hitting the fixed limit I removed in #118515.

    Yes, I last merged from main this Monday.

  13. amanasifkhalid commented on Aug 14, 2025

    @amanasifkhalid
    Contributor

    I remain perplexed by this. My hypothesis is there are some microbenchmarks where the loop iteration computation now comes up with a number below BB_LOOP_WEIGHT_SCALE, which was already too low to boost the duplication cost threshold. However, if the loop has a shared static helper or array.Length operations, we recompute the duplication cost threshold using the loop iteration computation, and thus using a value smaller than BB_LOOP_WEIGHT_SCALE may pessimize the recomputed threshold. I haven't seen this locally in the regressed benchmarks, but it is possible.

    I opened #118696 to see if I could rectify any of the regressions by ensuring the iteration count estimate is never less than BB_UNITY_WEIGHT. EgorBot shows a modest improvement on Cobalt. @AndyAyersMS does this sound like something we should take on principle?

  14. amanasifkhalid commented on Aug 15, 2025

    @amanasifkhalid
    Contributor

    Bumping this to .NET 11 since the impact is quite limited.

  15. modified the milestones: 10.0.0, 11.0.0 on Aug 15, 2025
  16. added 2 commits that reference this issue on May 21, 2026
    63e9cc3
    bd8ed68
  17. added a commit that references this issue on May 27, 2026
    38d408d
  18. locked and limited conversation to collaborators on Jun 27, 2026
  19. added a commit that references this issue on Jul 15, 2026
    cc7cbdc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-arm64area-CodeGen-coreclros-linuxruntime-coreclrtenet-performancetenet-performance-benchmarks

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions