Repository navigation
Closed
Labels
arch-arm64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIruntime-coreclrspecific to the CoreCLR runtime
Milestone
Description
Run Information
| Architecture | arm64 |
|---|---|
| OS | Windows 10.0.19041 |
| Baseline | 9ab00ef5c8904f28fba9b01b4fefd4ad672567fb |
| Compare | 10438a57b888cbdc6dc15771dc662adde9fd6b14 |
| Diff | Diff |
Regressions in System.Collections.Sort<Int32>
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio | Baseline ETL | Compare ETL |
|---|---|---|---|---|---|---|---|---|---|---|
| Array - Duration of single invocation | 5.49 μs | 6.01 μs | 1.10 | 0.24 | False | |||||
| List - Duration of single invocation | 5.49 μs | 6.37 μs | 1.16 | 0.17 | False |
Repro
git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'System.Collections.Sort<Int32>*'Details
Payloads
Histogram
System.Collections.Sort<Int32>.Array(Size: 512)
Description of detection logic
IsRegressionChecked: Marked as regression because the three check build points were 0.05 greater than the baseline.
IsImprovementBase: Marked as not an improvement because the compare was not 5% less than the baseline, or the value was too small.
IsRegressionBase: Marked as regression because the compare was 5% greater than the baseline, and the value was not too small.
IsRegressionChecked: Marked as regression because the three check build points were 0.05 greater than the baseline.
IsRegressionWindowed: Marked as regression because 6.012585555555557 > 5.747378230263158.
IsChangePoint: Marked as a change because one of 6/16/2022 10:45:33 PM, 6/23/2022 3:07:42 AM falls between 6/14/2022 10:05:19 AM and 6/23/2022 3:07:42 AM.
IsRegressionStdDev: Marked as regression because -15.026510107388873 (T) = (0 -6212.707966783625) / Math.Sqrt((29561.33241260086 / (21)) + (33639.99194715355 / (25))) is less than -2.0153675744421933 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (21) + (25) - 2, .025) and -0.14535986474704712 = (5424.241025029895 - 6212.707966783625) / 5424.241025029895 is less than -0.05.
IsImprovementBase: Marked as not an improvement because the compare was not 5% less than the baseline, or the value was too small.
IsChangeEdgeDetector: Marked not as a regression because Edge Detector said so.
```#### System.Collections.Sort<Int32>.List(Size: 512)
```log
Description of detection logic
IsRegressionChecked: Marked as regression because the three check build points were 0.05 greater than the baseline.
IsImprovementBase: Marked as not an improvement because the compare was not 5% less than the baseline, or the value was too small.
IsRegressionBase: Marked as regression because the compare was 5% greater than the baseline, and the value was not too small.
IsRegressionChecked: Marked as regression because the three check build points were 0.05 greater than the baseline.
IsRegressionWindowed: Marked as regression because 6.367123333333333 > 5.7733494.
IsChangePoint: Marked as a change because one of 6/6/2022 12:57:23 AM, 6/16/2022 10:45:33 PM, 6/23/2022 3:07:42 AM falls between 6/14/2022 10:05:19 AM and 6/23/2022 3:07:42 AM.
IsRegressionStdDev: Marked as regression because -18.256655481072343 (T) = (0 -6290.907881769642) / Math.Sqrt((15144.937245487698 / (21)) + (38150.12749039728 / (23))) is less than -2.0180817028167235 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (21) + (23) - 2, .025) and -0.1649239776783329 = (5400.273324536833 - 6290.907881769642) / 5400.273324536833 is less than -0.05.
IsImprovementBase: Marked as not an improvement because the compare was not 5% less than the baseline, or the value was too small.
IsChangeEdgeDetector: Marked not as a regression because Edge Detector said so.
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Metadata
Metadata
Assignees
Labels
arch-arm64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIruntime-coreclrspecific to the CoreCLR runtime
_1.png)
_2.png)
Activity
[-][Perf] Changes at 6/17/2022 3:07:11 AM[/-][+]Regressions in System.Collections.Sort<Int32>[/+]EgorBo commentedon Jun 23, 2022
The only suspect is #70809
EgorBo commentedon Jun 23, 2022
arm64: dotnet/perf-autofiling-issues#6319
7 remaining items
AndyAyersMS commentedon Jul 13, 2022
My local box doesn't see a regression; it has main about 7% faster.
diff is 42c321a
base is 1a02f0d (just before #70809).
Global history generally doesn't agree and thinks the regression persists (but note quite different HW). Here is win arm64:
and here is windows on Ampere (seems oddly way too slow):
and here is linux on Ampere (also seems oddly slow)
and (for completness's sake here is linux arm64 on the perf lab qualcomm box which does not see a regression either:
I can try looking at a narrower range of commits but given that none of the lab runs show any recent changes (other than the big regression/fix) I don't think it matters.
So some mysteries to sort through:
AndyAyersMS commentedon Jul 13, 2022
As a sanity check here's the local net6 vs net7(p5) data.
and the same to releases on the Ampere (Linux)
AndyAyersMS commentedon Jul 13, 2022
I wonder if this benchmark is just broken.
-p ETWprofiling shows really odd time distributions. Guessing that the R2R samples are not resolving properly and that the top method should be a prejitted sort.AndyAyersMS commentedon Jul 13, 2022
For comparison here's the same profile on windows x64. Also seems a bit messed up (R2R not resolving) but otherwise more or less reasonable.
AndyAyersMS commentedon Aug 3, 2022
Looks like this regression is device specific and only seems to happen on the surface pro x's in the lab.
Still puzzled why the results on other Arm64 boxes are so bad, but that's a separate issue (#73315)
AndyAyersMS commentedon Aug 3, 2022
Given this only seems to affect surface pro x, going to close.