Repository navigation
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark
Milestone
Description
Run Information
| Architecture | arm64 |
|---|---|
| OS | ubuntu 20.04 |
| Baseline | 3dbc850af3e8bfd6d529ed90cf00247dc9a24512 |
| Compare | 98984ccad55362a66b7fd7a8f198bab13c2496bc |
| Diff | Diff |
Regressions in SciMark2.kernel
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio | Baseline ETL | Compare ETL |
|---|---|---|---|---|---|---|---|---|---|---|
| benchmarkLU - Duration of single invocation | 613.19 ms | 718.89 ms | 1.17 | 0.00 | False |
Repro
git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'SciMark2.kernel*'Related Issues
Regressions
Improvements
Details
Payloads
Histogram
Edge Detector Info
SciMark2.kernel.benchmarkLU
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.
IsRegressionWindowed: Marked as regression because 718.8945194285715 > 643.9885426399999.
IsChangePoint: Marked as a change because one of 10/31/2022 1:09:40 PM, 11/2/2022 9:17:08 PM falls between 10/25/2022 8:54:59 AM and 11/2/2022 9:17:08 PM.
IsRegressionStdDev: Marked as regression because -825.1818855985395 (T) = (0 -718997492.7443956) / Math.Sqrt((171242071203.19473 / (35)) + (114231475869.8522 / (10))) is less than -2.016692199226234 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (35) + (10) - 2, .025) and -0.17177985581390257 = (613594344.6860073 - 718997492.7443956) / 613594344.6860073 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.
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
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark

Activity
[-][Perf] Linux/arm64: 1 Regression on 10/31/2022 6:57:36 PM[/-][+]Regressions in SciMark2.kernel[/+]EgorBo commentedon Nov 3, 2022
Suspect: #62689 cc @pedrobsaila
4 remaining items
pedrobsaila commentedon Nov 3, 2022
My PR generated some regressions on SciMark2 :
My change is probably the one causing the regression, let me see if I can fix them. Just one question about these comments on SciMark2 :
Do I really risk something if I debug these tests locally ?
EgorBo commentedon Nov 3, 2022
We run them on daily basis so hopefully not? 🙂 No idea who put that comment there
AndyAyersMS commentedon Nov 5, 2022
I think it's a joke -- best I can tell it was added when the benchmark code was ported from Java to C#, many years ago.
AndyAyersMS commentedon Nov 9, 2022
Let me know if you need any help digging into this. The issues here might be similar to the problems we have with if conversion. For example, by changing something like
if ((x op const) && (y op const)) { ... }to
if ((x op y) op const) { .... }we run the risk that if
(x op const)is usuallyfalseandyis the result of some long-latency computation or dependence chain then evaluatingyeagerly can make things slower (and similarly when the combiner is||and(x op const)is usuallytrue).One way to avoid the potential downside is to not do this optimization when the predicates are in a loop, or when profile data indicates evaluation of
yis unlikely.pedrobsaila commentedon Nov 9, 2022
I ran the benchmark on x64/x86 Windows/Linux and I could not reproduce the 100 ms regression : I have light regressions/improvements (less than 30 ms) depending on the environment. It would be of help to see assembly diffs if you have an arm64 machine just to be sure there's no bad assembly generated
Thanks for the hint. I'll see if I can improve regressions based on this. I see something similar in
runtime/src/coreclr/jit/optimizer.cpp
Lines 9693 to 9700 in c04cf0c
pedrobsaila commentedon Nov 15, 2022
I've been playing for a while with SciMark2.kernel perf tests and I don't think that regression is caused by the fact that we might evaluate an expensive
if ((x op y) op const) { .... }where x is false and y is an expensive operation. The optimisation is applied only to array range checks indexer >= 0 so the operation is not expensive and is always true (no IndexOutOfRangeException thrown in code)Here are assembly diffs in Windows X64 (same diffs for Linux x64) for the main methods of SciMark2.kernel :
Did not find any suspicious diffs in assembly. The diffs are not that significant to generate important improvements/regressions.
@AndyAyersMS I think I need a little help to dig this.
pedrobsaila commentedon Dec 31, 2022
It seems like things are back the way they were :
AndyAyersMS commentedon Dec 31, 2022
Likely from #77728
AndyAyersMS commentedon Jun 30, 2026
Closing -- the original arm64 ubuntu 20.04 regression on
SciMark2.kernel.benchmarkLUwas resolved by #77728 (per @pedrobsaila''s "back the way they were" confirmation in this thread on 2022-12-31, and my comment immediately following).Three-and-a-half years later, no perf-autofiler issue has flagged
benchmarkLUon native arm64 again -- the ubuntu 20.04 / TigerUbuntu lab has been decommissioned, and the new linux-arm64 SciMark2.kernel runs (e.g. dotnet/perf-autofiling-issues#75004 forbenchSparseMulton azurelinux 3.0, last week) cover different benchmarks. Those should be tracked separately if they need investigation.