Skip to content

[Perf] Regressions from increasing inline budget #114383

Closed

Description

@performanceautofiler

Run Information

Name Value
Architecture x64
OS ubuntu 22.04
Queue TigerUbuntu
Baseline 15872212c29cecc8d82da4548c3060f2614665f7
Compare ebcbde19ae3d35893879bb0e4376d9dfb7d5b336
Diff Diff
Configs CompilationMode:tiered, RunKind:micro

Regressions in System.IO.Hashing.Tests.Crc64_AppendPerf

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio
429.49 ns 1.45 μs 3.37 0.01 False
5.97 ns 8.20 ns 1.37 0.07 False
12.48 ns 45.99 ns 3.69 0.04 False

graph
graph
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.IO.Hashing.Tests.Crc64_AppendPerf*'
Details

System.IO.Hashing.Tests.Crc64_AppendPerf.Append(BufferSize: 10240)

ETL Files

Histogram

JIT Disasms

System.IO.Hashing.Tests.Crc64_AppendPerf.Append(BufferSize: 16)

ETL Files

Histogram

JIT Disasms

System.IO.Hashing.Tests.Crc64_AppendPerf.Append(BufferSize: 256)

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 Apr 8, 2025
  2. ghost added
    needs-area-label
    on Apr 8, 2025
  3. changed the title [-][Perf] Linux/x64: 3 Regressions on 4/4/2025 3:42:41 AM +00:00[/-] [+][Perf] Linux/x64: System.IO.Hashing.Tests.Crc64_AppendPerf Regressions on 4/4/2025 3:42:41 AM +00:00[/+] on Apr 8, 2025
  4. added
    tenet-performance
    tenet-performance-benchmarks
    on Apr 8, 2025
  5. LoopedBard3 commented on Apr 8, 2025

    @LoopedBard3
    Member

    Likely due to #114191 in range a79768e...39b1172.

    Related Regressions:

    Improvements:

  6. dotnet-policy-service commented on Apr 8, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-io-hashing, @bartonjs, @vcsjones
    See info in area-owners.md if you want to be subscribed.

  7. changed the title [-][Perf] Linux/x64: System.IO.Hashing.Tests.Crc64_AppendPerf Regressions on 4/4/2025 3:42:41 AM +00:00[/-] [+][Perf] Regressions from increasing inline budget[/+] on Apr 8, 2025
  8. removed
    needs-area-label
    on Apr 9, 2025
  9. jeffhandley commented on Jul 23, 2025

    @jeffhandley
    Member

    @AndyAyersMS It looks like all of the related regressions were closed; should this issue be closed out as well, or is there more actionable here?

  10. 1 remaining item

  11. removed
    untriaged
    on Jul 23, 2025
  12. AndyAyersMS commented on Jul 23, 2025

    @AndyAyersMS
    Member

    We usually close the "related regressions" right away so it's not a sign that the issues were addressed.

    Let me take a closer look when I'm back next week.

  13. self-assigned this
    on Jul 23, 2025
  14. added
    area-CodeGen-coreclr
    and removed on Jul 23, 2025
  15. dotnet-policy-service commented on Jul 23, 2025

    @dotnet-policy-service
    Contributor

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

  16. AndyAyersMS commented on Jul 28, 2025

    @AndyAyersMS
    Member

    There is a persistent large regression in the System.IO.Hashing.Tests.Crc64_AppendPerf.Append tests. These improved (though mysteriously) on April 19, then regressed again on May 29. Eg viper windows:

    Image

    April 19 improvement range is 7b5faf3...2db2821

    Subsequent re-regression is likely from #116054 (though could perhaps be #116068).

    @EgorBo are these CRC tests on your radar? They are fairly high up in the .NET 8 vs .NET 10 regression ranking. If not, I'll take a look.

  17. EgorBo commented on Jul 29, 2025

    @EgorBo
    Member

    There is a persistent large regression in the System.IO.Hashing.Tests.Crc64_AppendPerf.Append tests. These improved (though mysteriously) on April 19, then regressed again on May 29. Eg viper windows:

    Image April 19 improvement range is [7b5faf3...2db2821](https://github.com/dotnet/runtime/compare/7b5faf3eff641ca3d3c5a87bc9b4f271a0b877c0...2db2821)

    Subsequent re-regression is likely from #116054 (though could perhaps be #116068).

    @EgorBo are these CRC tests on your radar? They are fairly high up in the .NET 8 vs .NET 10 regression ranking. If not, I'll take a look.

    Feel free to grab it, I planned to look at some, just wasn't sure I could do anything given we just rely on existing inliner's heuristics

  18. AndyAyersMS commented on Aug 8, 2025

    @AndyAyersMS
    Member

    For the CRC regressions, we are now able to inline System.IO.Hashing.NonCryptographicHashAlgorithm:Append but run out of budget trying further inlines.

    Note budgets are not "transitive". If A->B and B->(many things) we will likely be able to inline more when B is the root then when A is, as the budget is set based on a scan of the root.

    We should probably mark the various UpdateVectorized methods as noinline; I don't think there is much benefit to be had by inlining them.

  19. added a commit that references this issue on Aug 8, 2025
    333f0b4
  20. AndyAyersMS commented on Aug 8, 2025

    @AndyAyersMS
    Member

    Looks like we're in good shape now.

    Notes Recent Score Orig Score arm64 ubuntu tiger ubuntu tiger windows surface windows viper ubuntu Benchmark
    Fixed by #118544 4.09 3.39 2.59
    2.37
    4.54
    3.69
    5.43
    4.70
    4.38
    3.22
    System.IO.Hashing.Tests.Crc64_AppendPerf.Append(BufferSize: 256)
    Fixed by #118544 3.86 3.26 4.33
    3.75
    3.96
    3.37
    4.29
    3.75
    3.02
    2.37
    System.IO.Hashing.Tests.Crc64_AppendPerf.Append(BufferSize: 10240)
    Fixed by #118544 2.36 1.45 1.30
    1.29
    2.75
    1.37
    2.78
    1.33
    1.27
    1.41
    5.83
    1.95
    System.IO.Hashing.Tests.Crc64_AppendPerf.Append(BufferSize: 16)
    1.04 1.10 1.04
    1.10
    System.Tests.Perf_Uri.EscapeDataString(input: "{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
    1.03 1.08 1.03
    1.08
    System.Text.RegularExpressions.Tests.Perf_Regex_Industry_BoostDocs_Simple.IsMatch(Id: 13, Options: NonBacktracking)
    1.02 1.36 1.02
    1.36
    System.Text.RegularExpressions.Tests.Perf_Regex_Industry_BoostDocs_Simple.IsMatch(Id: 1, Options: NonBacktracking)
  21. added a commit that references this issue on Aug 8, 2025
    b9bdc40
  22. AndyAyersMS commented on Aug 10, 2025

    @AndyAyersMS
    Member

    For CRC64 Append (last improvement via #118544)

    Image
  23. locked and limited conversation to collaborators on Sep 10, 2025
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-linuxruntime-coreclrtenet-performancetenet-performance-benchmarks

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions