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

[Perf] Linux/x64: 1 Regression on 8/20/2023 5:37:20 PM #91281

Closed
performanceautofiler bot opened this issue Aug 29, 2023 · 7 comments
Closed

[Perf] Linux/x64: 1 Regression on 8/20/2023 5:37:20 PM #91281

performanceautofiler bot opened this issue Aug 29, 2023 · 7 comments
Labels
arch-x64 area-System.Memory needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration os-linux Linux OS (any supported distro) runtime-coreclr specific to the CoreCLR runtime
Milestone

Comments

@performanceautofiler
Copy link

performanceautofiler bot commented Aug 29, 2023

Run Information

Name Value
Architecture x64
OS ubuntu 22.04
Queue TigerUbuntu
Baseline a429b0ca4fbb2ed7014815792f1cf1b5939eb567
Compare d74b52492d85a3a250654d670942e35f9f0be2e8
Diff Diff
Configs CompilationMode:tiered, RunKind:micro

Regressions in System.Memory.Span<Int32>

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio
1.56 ns 2.65 ns 1.70 0.33 False

graph
Test Report

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.Memory.Span&lt;Int32&gt;*'

Payloads

Baseline
Compare

System.Memory.Span<Int32>.IndexOfAnyTwoValues(Size: 4)

ETL Files

Histogram

Description of detection logic

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.
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 2.654301425878747 > 1.8619193806192755.
IsChangePoint: Marked as a change because one of 8/19/2023 11:06:43 PM, 8/28/2023 11:06:53 PM falls between 8/19/2023 11:06:43 PM and 8/28/2023 11:06:53 PM.
IsRegressionStdDev: Marked as regression because -5.451648309262017 (T) = (0 -2.1929101539938283) / Math.Sqrt((0.05550951201037635 / (8)) + (0.025818483466123296 / (27))) is less than -2.034515297446192 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (8) + (27) - 2, .025) and -0.28352004260322977 = (1.7085125913158141 - 2.1929101539938283) / 1.7085125913158141 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.

JIT Disasms

Docs

Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository

@performanceautofiler performanceautofiler bot added arch-x64 os-linux Linux OS (any supported distro) runtime-coreclr specific to the CoreCLR runtime untriaged New issue has not been triaged by the area owner labels Aug 29, 2023
@cincuranet cincuranet removed the untriaged New issue has not been triaged by the area owner label Aug 29, 2023
@cincuranet cincuranet transferred this issue from dotnet/perf-autofiling-issues Aug 29, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 29, 2023
@cincuranet
Copy link
Contributor

cincuranet commented Aug 29, 2023

The diff points to #88394 cc @MihaZupan. But I'm not 100% convinced.

@MihaZupan
Copy link
Member

That PR is adding new APIs, but they're not consumed anywhere yet, so I doubt it's the cause.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 29, 2023
@cincuranet
Copy link
Contributor

The first spike points to d267844...374b111. That seems to be hardly related as well.

@cincuranet
Copy link
Contributor

Also seems to be only Linux/Ubuntu 22.04 x64. Others are unaffected.

@ghost
Copy link

ghost commented Aug 30, 2023

Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.

Issue Details

Run Information

Name Value
Architecture x64
OS ubuntu 22.04
Queue TigerUbuntu
Baseline a429b0ca4fbb2ed7014815792f1cf1b5939eb567
Compare d74b52492d85a3a250654d670942e35f9f0be2e8
Diff Diff
Configs CompilationMode:tiered, RunKind:micro

Regressions in System.Memory.Span<Int32>

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio
1.56 ns 2.65 ns 1.70 0.33 False

graph
Test Report

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.Memory.Span&lt;Int32&gt;*'

Payloads

Baseline
Compare

System.Memory.Span<Int32>.IndexOfAnyTwoValues(Size: 4)

ETL Files

Histogram

Description of detection logic

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.
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 2.654301425878747 > 1.8619193806192755.
IsChangePoint: Marked as a change because one of 8/19/2023 11:06:43 PM, 8/28/2023 11:06:53 PM falls between 8/19/2023 11:06:43 PM and 8/28/2023 11:06:53 PM.
IsRegressionStdDev: Marked as regression because -5.451648309262017 (T) = (0 -2.1929101539938283) / Math.Sqrt((0.05550951201037635 / (8)) + (0.025818483466123296 / (27))) is less than -2.034515297446192 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (8) + (27) - 2, .025) and -0.28352004260322977 = (1.7085125913158141 - 2.1929101539938283) / 1.7085125913158141 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.

JIT Disasms

Docs

Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository

Author: performanceautofiler[bot]
Assignees: -
Labels:

area-System.Memory, os-linux, arch-x64, untriaged, runtime-coreclr, needs-area-label

Milestone: -

@adamsitnik
Copy link
Member

That PR is adding new APIs, but they're not consumed anywhere yet, so I doubt it's the cause.

Adding new methods can change the alignment of other methods. It would be great to compare the disassembly to see if anything has actually changed.

@vcsjones vcsjones removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 1, 2023
@tannergooding tannergooding added needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration and removed untriaged New issue has not been triaged by the area owner labels Jun 24, 2024
@stephentoub stephentoub added this to the 9.0.0 milestone Jul 22, 2024
@tannergooding
Copy link
Member

This is a 1 nanosecond change for a scenario taking in 4 inputs in an API that has undergone multiple other improvements balancing APIs .

I'm closing this as "by design" given the regression is so small, that there is no clear indicator of what caused the regression, and that such small timings can be influenced by almost any part of the system.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-System.Memory needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration os-linux Linux OS (any supported distro) runtime-coreclr specific to the CoreCLR runtime
Projects
None yet
Development

No branches or pull requests

7 participants