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

Regressions in System.Text.Json.Serialization.Tests.ColdStartSerialization<SimpleStructWithProperties> #73388

Closed
performanceautofiler bot opened this issue Aug 4, 2022 · 6 comments · Fixed by #73497
Assignees
Labels
area-System.Text.Json 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 d7c8bc10ac00fe330daa633f8a2b16ba208e6e56
Compare 44f1c1ec1eed7662d47dfbbf506d55d0152029eb
Diff Diff

Regressions in System.Text.Json.Serialization.Tests.ColdStartSerialization<SimpleStructWithProperties>

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
NewCustomConverter - Duration of single invocation 40.53 μs 46.71 μs 1.15 0.21 False

graph
Test Report

Repro

git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'System.Text.Json.Serialization.Tests.ColdStartSerialization&lt;SimpleStructWithProperties&gt;*'

Payloads

Baseline
Compare

Histogram

System.Text.Json.Serialization.Tests.ColdStartSerialization<SimpleStructWithProperties>.NewCustomConverter


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 46.71231816877153 > 43.88696154360346.
IsChangePoint: Marked as a change because one of 6/22/2022 11:10:17 PM, 7/16/2022 2:59:06 AM, 7/29/2022 4:11:34 AM, 8/4/2022 5:17:15 AM falls between 7/26/2022 2:47:26 PM and 8/4/2022 5:17:15 AM.
IsRegressionStdDev: Marked as regression because -7.504475221869677 (T) = (0 -44920.93830592109) / Math.Sqrt((1436821.783873055 / (23)) + (2216765.2470964855 / (22))) is less than -2.016692199226234 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (23) + (22) - 2, .025) and -0.07238090143156774 = (41888.97643174564 - 44920.93830592109) / 41888.97643174564 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 Aug 4, 2022
@EgorBo EgorBo changed the title [Perf] Changes at 7/29/2022 9:57:56 AM Regressions in System.Text.Json.Serialization.Tests.ColdStartSerialization<SimpleStructWithProperties> Aug 4, 2022
@EgorBo EgorBo removed refs/heads/main untriaged New issue has not been triaged by the area owner labels Aug 4, 2022
@EgorBo EgorBo transferred this issue from dotnet/perf-autofiling-issues Aug 4, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 4, 2022
@ghost
Copy link

ghost commented Aug 4, 2022

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

Issue Details

Run Information

Architecture arm64
OS ubuntu 20.04
Baseline d7c8bc10ac00fe330daa633f8a2b16ba208e6e56
Compare 44f1c1ec1eed7662d47dfbbf506d55d0152029eb
Diff Diff

Regressions in System.Text.Json.Serialization.Tests.ColdStartSerialization<SimpleStructWithProperties>

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
NewCustomConverter - Duration of single invocation 40.53 μs 46.71 μs 1.15 0.21 False

graph
Test Report

Repro

git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'System.Text.Json.Serialization.Tests.ColdStartSerialization&lt;SimpleStructWithProperties&gt;*'

Payloads

Baseline
Compare

Histogram

System.Text.Json.Serialization.Tests.ColdStartSerialization<SimpleStructWithProperties>.NewCustomConverter


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 46.71231816877153 > 43.88696154360346.
IsChangePoint: Marked as a change because one of 6/22/2022 11:10:17 PM, 7/16/2022 2:59:06 AM, 7/29/2022 4:11:34 AM, 8/4/2022 5:17:15 AM falls between 7/26/2022 2:47:26 PM and 8/4/2022 5:17:15 AM.
IsRegressionStdDev: Marked as regression because -7.504475221869677 (T) = (0 -44920.93830592109) / Math.Sqrt((1436821.783873055 / (23)) + (2216765.2470964855 / (22))) is less than -2.016692199226234 = MathNet.Numerics.Distributions.StudentT.InvCDF(0, 1, (23) + (22) - 2, .025) and -0.07238090143156774 = (41888.97643174564 - 44920.93830592109) / 41888.97643174564 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: EgorBo
Labels:

area-System.Text.Json

Milestone: -

@EgorBo EgorBo added tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark labels Aug 4, 2022
@EgorBo
Copy link
Member

EgorBo commented Aug 4, 2022

Likely caused by #72228 cc @eiriktsarpalis

@eiriktsarpalis
Copy link
Member

eiriktsarpalis commented Aug 4, 2022

Guessing you mean #72937? That PR is outside the reported commit range.

@EgorBo
Copy link
Member

EgorBo commented Aug 4, 2022

@eiriktsarpalis
Copy link
Member

eiriktsarpalis commented Aug 4, 2022

Got it. That particular PR changes how converters are resolved for properties (they are now resolved lazily via the metadata cache) which may or may not result in redundant calculations being made.

Given that the particular benchmark measures serialization with metadata being regenerated from scratch, unless regressions have been recorded in other benchmarks, I don't believe this is blocking release. We should still investigate in case there are any obvious fixes we could apply, but otherwise we could just move it to 8.0.0 -- the particular benchmark still records a net improvement compared to .NET 6 due to the changes in #64646.

@eiriktsarpalis eiriktsarpalis removed the untriaged New issue has not been triaged by the area owner label Aug 4, 2022
@eiriktsarpalis eiriktsarpalis added this to the 7.0.0 milestone Aug 4, 2022
@eiriktsarpalis
Copy link
Member

Should be investigated in unison with #71392, it concerns the same benchmark that regressed as part of the same feature.

@EgorBo EgorBo removed their assignment Aug 5, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Aug 5, 2022
@eiriktsarpalis eiriktsarpalis self-assigned this Aug 5, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Aug 8, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants