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] Changes: about 10k size increase in system.test.json.dll #55937

Closed
Lxiamail opened this issue Jul 19, 2021 · 7 comments
Closed

[Perf] Changes: about 10k size increase in system.test.json.dll #55937

Lxiamail opened this issue Jul 19, 2021 · 7 comments
Assignees
Labels
area-System.Text.Json size-reduction Issues impacting final app size primary for size sensitive workloads tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark
Milestone

Comments

@Lxiamail
Copy link
Member

Description

about 10k size increase in system.test.json.dll

Configuration

All

Regression?

yes

Data

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a8926ba
Compare 5842db2
Diff Diff

graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
Historical Data in Reporting System

Repro: git clone https://github.com/dotnet/performance.git python3 .\performance\scripts\benchmarks_ci.py -f netcoreapp5.0 --filter 'SOD - Minimum Blazor Template - Publish*'
@Lxiamail Lxiamail added tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark size-reduction Issues impacting final app size primary for size sensitive workloads labels Jul 19, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner labels Jul 19, 2021
@ghost
Copy link

ghost commented Jul 19, 2021

Tagging subscribers to 'size-reduction': @eerhardt, @SamMonoRT, @marek-safar
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

about 10k size increase in system.test.json.dll

Configuration

All

Regression?

yes

Data

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a8926ba
Compare 5842db2
Diff Diff

graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
Historical Data in Reporting System

Repro: git clone https://github.com/dotnet/performance.git python3 .\performance\scripts\benchmarks_ci.py -f netcoreapp5.0 --filter 'SOD - Minimum Blazor Template - Publish*'
Author: Lxiamail
Assignees: -
Labels:

size-reduction, tenet-performance, tenet-performance-benchmarks

Milestone: -

@eerhardt
Copy link
Member

This issue doesn't have as much information as previous issues.

  1. Do we have before and after .zips of the publish folder?

  2. It also doesn't have the before/after ratio table either, for example:

image

cc @DrewScoggins

@ghost
Copy link

ghost commented Jul 19, 2021

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

Issue Details

Description

about 10k size increase in system.test.json.dll

Configuration

All

Regression?

yes

Data

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a8926ba
Compare 5842db2
Diff Diff

graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
Historical Data in Reporting System

Repro: git clone https://github.com/dotnet/performance.git python3 .\performance\scripts\benchmarks_ci.py -f netcoreapp5.0 --filter 'SOD - Minimum Blazor Template - Publish*'
Author: Lxiamail
Assignees: -
Labels:

area-System.Text.Json, size-reduction, tenet-performance, tenet-performance-benchmarks, untriaged

Milestone: -

@eerhardt
Copy link
Member

This could very well be #55108, as it is in the before and after commit range.

cc @eiriktsarpalis

@DrewScoggins
Copy link
Member

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a8926ba6ecadb259694e09650225d9094081a7df
Compare 5842db2c301cb1752ae854232a4fbae51d4a9ed0
Diff Diff

Regressions in SOD - New Blazor Template - Publish

Benchmark Baseline Test Test/Base Test Quality Edge Detector Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll 250.50 KB 261.00 KB 1.04 0.00 True
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.ComponentModel.dll.br 1.31 KB 1.33 KB 1.01 0.00 True
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Private.Runtime.InteropServices.JavaScript.dll.gz 9.70 KB 9.94 KB 1.02 0.00 True
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Private.Runtime.InteropServices.JavaScript.dll 20.50 KB 21.00 KB 1.02 0.00 True
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.br 83.34 KB 86.19 KB 1.03 0.00 True
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Private.Runtime.InteropServices.JavaScript.dll.br 8.63 KB 8.80 KB 1.02 0.00 True
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.gz 97.35 KB 100.66 KB 1.03 0.00 True

graph
graph
graph
graph
graph
graph
graph
Historical Data in Reporting System

Repro

git clone https://github.com/dotnet/performance.git
python3 .\performance\scripts\benchmarks_ci.py -f netcoreapp5.0 --filter 'SOD - New Blazor Template - Publish*'

Payloads

Baseline
Compare

Histogram

SOD - New Blazor Template - Publish


Docs

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

@eerhardt
Copy link
Member

Diffing the baseline and compare assemblies, this was caused mostly by #55108. There were also changes from #55846 in there, but those weren't as large.

image

@eiriktsarpalis @layomia

@SamMonoRT SamMonoRT removed the untriaged New issue has not been triaged by the area owner label Jul 20, 2021
@SamMonoRT SamMonoRT added this to the 6.0.0 milestone Jul 20, 2021
@eiriktsarpalis
Copy link
Member

The reported size regression is an expected side-effect of new features being added to the serializer. I have submitted #55991 which somewhat mitigates the issue (contributing ~2K of uncompressed size reduction, ~100B compressed).

After conversation with @eerhardt, I'm going to close this issue as by-design.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json size-reduction Issues impacting final app size primary for size sensitive workloads tenet-performance Performance related issue tenet-performance-benchmarks Issue from performance benchmark
Projects
None yet
Development

No branches or pull requests

6 participants