Repository navigation
Description
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | 2f8f6e71c8e9216840c7f80fb71c545e1cdac580 |
| Compare | e2ad5fcc1702105d9cb9c32802181976df1b97ba |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.Collections.IterateForEach<Int32>
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 1.45 μs | 1.61 μs | 1.11 | 0.01 | 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
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Collections.IterateForEach<Int32>*'Details
System.Collections.IterateForEach<Int32>.Stack(Size: 512)
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | 2f8f6e71c8e9216840c7f80fb71c545e1cdac580 |
| Compare | e2ad5fcc1702105d9cb9c32802181976df1b97ba |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.Perf_Convert
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 78.85 ns | 88.13 ns | 1.12 | 0.01 | False | ||||
| 78.90 ns | 88.95 ns | 1.13 | 0.02 | 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
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Perf_Convert*'Details
System.Perf_Convert.FromBase64String
ETL Files
Histogram
JIT Disasms
System.Perf_Convert.FromBase64Chars
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | 2f8f6e71c8e9216840c7f80fb71c545e1cdac580 |
| Compare | e2ad5fcc1702105d9cb9c32802181976df1b97ba |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.Buffers.Text.Tests.Base64Tests
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 1.01 μs | 1.37 μs | 1.36 | 0.01 | 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
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Buffers.Text.Tests.Base64Tests*'Details
System.Buffers.Text.Tests.Base64Tests.ConvertTryFromBase64Chars(NumberOfBytes: 1000)
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | 2f8f6e71c8e9216840c7f80fb71c545e1cdac580 |
| Compare | e2ad5fcc1702105d9cb9c32802181976df1b97ba |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.IO.Tests.Perf_StreamWriter
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 125.67 ms | 137.04 ms | 1.09 | 0.02 | 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
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.IO.Tests.Perf_StreamWriter*'Details
System.IO.Tests.Perf_StreamWriter.WritePartialCharArray(writeLength: 2)
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | 2f8f6e71c8e9216840c7f80fb71c545e1cdac580 |
| Compare | e2ad5fcc1702105d9cb9c32802181976df1b97ba |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.Collections.ContainsFalse<Int32>
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 24.94 μs | 32.81 μs | 1.32 | 0.26 | 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
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Collections.ContainsFalse<Int32>*'Details
System.Collections.ContainsFalse<Int32>.Stack(Size: 512)
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | 2f8f6e71c8e9216840c7f80fb71c545e1cdac580 |
| Compare | e2ad5fcc1702105d9cb9c32802181976df1b97ba |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in MicroBenchmarks.Serializers.Xml_ToStream<IndexViewModel>
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 42.38 μs | 44.50 μs | 1.05 | 0.01 | 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
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'MicroBenchmarks.Serializers.Xml_ToStream<IndexViewModel>*'Details
MicroBenchmarks.Serializers.Xml_ToStream<IndexViewModel>.XmlSerializer_
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository







Activity
LoopedBard3 commentedon May 20, 2025
Likely due to #115626 in range: 8a071a2...3c8bae3.
Related Regressions:
Improvements:
dotnet-policy-service commentedon May 21, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
AndyAyersMS commentedon Jun 8, 2025
Collation
2.44
1.22
1.10
1.20
1.20
1.16
1.36
1.09
1.07
1.13
1.18
1.11
1.11
1.09
1.13
1.11
1.12
1.09
1.06
1.11
1.08
1.06
0.87
1.06
1.12
1.07
1.09
1.26
1.10
0.89
1.11
1.09
1.24
1.07
1.32
1.10
0.86
0.72
0.86
1.12
1.06
0.87
1.07
0.95
0.89
1.12
0.90
0.89
1.15
0.86
1.05
0.51
1.06
1.09
0.78
0.81
0.94
0.76
0.92
AndyAyersMS commentedon Jun 18, 2025
Updated collation
2.44
1.22
1.10
1.07
1.11
1.09
1.06
1.11
1.16
1.36
1.20
1.20
1.08
1.13
1.11
1.12
1.12
1.09
1.07
1.13
1.11
1.09
1.09
1.32
0.89
1.11
1.09
0.51
1.06
1.09
1.06
0.87
1.06
1.26
0.89
1.12
1.07
1.24
1.10
1.10
0.86
0.86
1.12
1.06
0.87
1.07
0.95
0.90
1.18
0.78
1.15
0.89
1.05
0.86
0.72
0.81
0.94
0.76
0.92
AndyAyersMS commentedon Aug 5, 2025
I'm not able to repro the arm diffs above on my local box. But I can repro
System.Text.Json.Document.Tests.Perf_EnumerateObject.EnumeratePropertiesand what I see there is that the postorder assertion prop done by morph is inconsistent; in particular it only runs on the subset of trees that pass throughfgMorphSmpOp.In the case of
EnumeratePropertiesthis means that some block op indirs don't get the same non-null propagation, so we end up with a mixture of nonfaulting and faulting indirs off the same base address and this in turn inhibits some useful CSEs.Adding a postorder AP pass to block op morphing fixes some of this.
But I also see early prop undoing some potentially beneficial CSEs.
Eg if we have
where the p and q are value equivalent and so CSE candidates, but lexically distinct (so local AP can't figure them out). Postorder morph AP may turn this into
and then early prop realizes the last indir can subsume the upstream nullcheck
and now the two indirs are no longer CSEs as *p has less exception than *q.
It seems like VN should be smart enough to fix this, so that the *q should not have an exception set.
Let me see why not.
AndyAyersMS commentedon Aug 5, 2025
Actually, the situation is not quite like the above, instead it's more like
Morph deduces p must not be null after the first indir
but does not run postorder AP over the nullcheck (as it's not SMP or a block op) so it stays. Then early prop creates
and the CSE is lost.
Let me see about running postorder AP for the nullcheck too.
JIT: postorder local assertion prop for fieldwise block op indirs
AndyAyersMS commentedon Aug 5, 2025
Things are more complicated than the above and as the first abstract indicated the separate indirs are not obviously related during local AP. So the nullcheck source seems unique and doesn't get optimized during morph.
AndyAyersMS commentedon Aug 5, 2025
#118368 has a fix for the block ops cases.
JIT: postorder local assertion prop for fieldwise block op indirs (#1…