Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in IfStatements.IfStatements #79101

Closed
performanceautofiler bot opened this issue Dec 1, 2022 · 6 comments
Closed

Regression in IfStatements.IfStatements #79101

performanceautofiler bot opened this issue Dec 1, 2022 · 6 comments
Assignees
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark
Milestone

Comments

@performanceautofiler
Copy link

Run Information

Architecture arm64
OS ubuntu 20.04
Baseline 0a92af9c695d9b1666fb60695b98e2802b8fe047
Compare 4f53c2f7e62df44f07cf410df8a0d439f42a0a71
Diff Diff

Regressions in IfStatements.IfStatements

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
OrOr - Duration of single invocation 72.13 μs 78.65 μs 1.09 0.01 False

graph
Test Report

Repro

git clone https://github.com/dotnet/performance.git
python3 .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'IfStatements.IfStatements*'

Payloads

Baseline
Compare

Histogram

IfStatements.IfStatements.OrOr


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 78.64729989530987 > 75.77867641516748.
IsChangePoint: Marked as a change because one of 10/7/2022 4:12:34 PM, 11/18/2022 7:31:41 AM, 11/25/2022 4:06:25 PM, 12/1/2022 1:41:45 AM falls between 11/22/2022 11:24:47 AM and 12/1/2022 1:41:45 AM.
IsRegressionStdDev: Marked as regression because -32.406495942474656 (T) = (0 -78642.9170985134) / Math.Sqrt((865287.3198576578 / (23)) + (13.154672428249054 / (16))) is less than -2.026192463026769 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (23) + (16) - 2, .025) and -0.08687026888141984 = (72357.22546670704 - 78642.9170985134) / 72357.22546670704 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

@performanceautofiler performanceautofiler bot added arm64 untriaged New issue has not been triaged by the area owner labels Dec 1, 2022
@dakersnar dakersnar removed refs/heads/main untriaged New issue has not been triaged by the area owner labels Dec 1, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dakersnar dakersnar transferred this issue from dotnet/perf-autofiling-issues Dec 1, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Dec 1, 2022
@dakersnar
Copy link
Contributor

@SingleAccretion Could this have been caused by #76491?

@dakersnar dakersnar added tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark labels Dec 1, 2022
@dakersnar dakersnar changed the title [Perf] Linux/arm64: 1 Regression on 11/25/2022 6:33:31 PM Regression in IfStatements.IfStatements Dec 1, 2022
@SingleAccretion
Copy link
Contributor

SingleAccretion commented Dec 1, 2022

It is hard for me to see how it could, though there is nothing else in the commit diff.

There are no Linux ARM64 diffs for this benchmark in #76491 and the change only affects code using vectors.

@jeffschwMSFT jeffschwMSFT added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 2, 2022
@ghost
Copy link

ghost commented Dec 2, 2022

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

Issue Details

Run Information

Architecture arm64
OS ubuntu 20.04
Baseline 0a92af9c695d9b1666fb60695b98e2802b8fe047
Compare 4f53c2f7e62df44f07cf410df8a0d439f42a0a71
Diff Diff

Regressions in IfStatements.IfStatements

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
OrOr - Duration of single invocation 72.13 μs 78.65 μs 1.09 0.01 False

graph
Test Report

Repro

git clone https://github.com/dotnet/performance.git
python3 .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'IfStatements.IfStatements*'

Payloads

Baseline
Compare

Histogram

IfStatements.IfStatements.OrOr


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 78.64729989530987 > 75.77867641516748.
IsChangePoint: Marked as a change because one of 10/7/2022 4:12:34 PM, 11/18/2022 7:31:41 AM, 11/25/2022 4:06:25 PM, 12/1/2022 1:41:45 AM falls between 11/22/2022 11:24:47 AM and 12/1/2022 1:41:45 AM.
IsRegressionStdDev: Marked as regression because -32.406495942474656 (T) = (0 -78642.9170985134) / Math.Sqrt((865287.3198576578 / (23)) + (13.154672428249054 / (16))) is less than -2.026192463026769 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (23) + (16) - 2, .025) and -0.08687026888141984 = (72357.22546670704 - 78642.9170985134) / 72357.22546670704 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

Author: performanceautofiler[bot]
Assignees: DrewScoggins
Labels:

tenet-performance, tenet-performance-benchmarks, area-CodeGen-coreclr, untriaged

Milestone: -

@JulieLeeMSFT JulieLeeMSFT added this to the 8.0.0 milestone Dec 3, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Dec 3, 2022
@JulieLeeMSFT
Copy link
Member

@AndyAyersMS PTAL.

@AndyAyersMS
Copy link
Member

This test was bimodal, and then regressed when PGO was enabled

newplot (73)

So this does not appear to be a regression per se (commit list shows nothing relevant).

That later regression seems possibly to be a similar problem to #87194 (comment) -- with PGO we inline the if-convertable method into a loop?

Looking cross-plat things looks similar elsewhere

image

@ghost ghost locked as resolved and limited conversation to collaborators Sep 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark
Projects
None yet
Development

No branches or pull requests

6 participants