Repository navigation
Closed
Labels
arch-x64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-linuxLinux OS (any supported distro)runtime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark
Milestone
Description
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 |
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
Metadata
Metadata
Assignees
Labels
arch-x64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-linuxLinux OS (any supported distro)runtime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark



Activity
[-][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[/+]LoopedBard3 commentedon Apr 8, 2025
Likely due to #114191 in range a79768e...39b1172.
Related Regressions:
Improvements:
dotnet-policy-service commentedon Apr 8, 2025
Tagging subscribers to this area: @dotnet/area-system-io-hashing, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.
[-][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[/+]jeffhandley commentedon Jul 23, 2025
@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?
1 remaining item
AndyAyersMS commentedon Jul 23, 2025
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.
dotnet-policy-service commentedon Jul 23, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
AndyAyersMS commentedon Jul 28, 2025
There is a persistent large regression in the
System.IO.Hashing.Tests.Crc64_AppendPerf.Appendtests. These improved (though mysteriously) on April 19, then regressed again on May 29. Eg viper windows: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.
EgorBo commentedon Jul 29, 2025
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
AndyAyersMS commentedon Aug 8, 2025
For the CRC regressions, we are now able to inline
System.IO.Hashing.NonCryptographicHashAlgorithm:Appendbut 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
UpdateVectorizedmethods as noinline; I don't think there is much benefit to be had by inlining them.Mark the vectorized CRC update methods noinline
AndyAyersMS commentedon Aug 8, 2025
Looks like we're in good shape now.
2.37
3.69
4.70
3.22
3.75
3.37
3.75
2.37
1.29
1.37
1.33
1.41
1.95
1.10
1.08
1.36
Mark the vectorized CRC update methods noinline (#118544)
AndyAyersMS commentedon Aug 10, 2025
For CRC64 Append (last improvement via #118544)