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

[WASM] SoD Changes #33967

Closed
DrewScoggins opened this issue Jun 23, 2021 · 10 comments · Fixed by #34000
Closed

[WASM] SoD Changes #33967

DrewScoggins opened this issue Jun 23, 2021 · 10 comments · Fixed by #34000
Assignees
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. Done This issue has been fixed
Milestone

Comments

@DrewScoggins
Copy link
Member

When we went from 6.0.100-preview.6.21318.1 -> 6.0.100-preview.6.21318.5 we saw the below regressions and improvements.

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a02b668214e9711cb3d5f426f085601698a24b92
Compare ca3c11d64516217134430d04354ac770b07c91ef
Diff Diff

Improvemnts in SOD - New Blazor Template - Publish

Benchmark Baseline Test Test/Base Test Quality Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.br 16.89 KB 6.31 KB 0.37 0.00
SOD - New Blazor Template - Publish - Aggregate - .svg 54.04 KB 31.32 KB 0.58 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf.br 13.34 KB 7.51 KB 0.56 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm 2.11 MB 2.04 MB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map.br 58.30 KB 6.53 KB 0.11 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot.gz 14.77 KB 7.90 KB 0.53 0.00
SOD - New Blazor Template - Publish - Aggregate - .br 2.55 MB 2.45 MB 0.96 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css 152.11 KB 47.45 KB 0.31 0.00
SOD - New Blazor Template - Publish - Aggregate - .gz 3.26 MB 3.11 MB 0.96 0.00
SOD - New Blazor Template - Publish - Aggregate - .ttf 27.37 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf.gz 12.52 KB 7.91 KB 0.63 0.00
SOD - New Blazor Template - Publish - Aggregate - .otf 20.50 KB 12.01 KB 0.59 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf.gz 14.71 KB 7.90 KB 0.54 0.00
SOD - New Blazor Template - Publish - Aggregate - .eot 27.54 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - Aggregate - .wasm 2.11 MB 2.04 MB 0.97 0.00
SOD - New Blazor Template - Publish - Aggregate - .js 288.88 KB 272.53 KB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm.br 756.30 KB 734.47 KB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf 20.50 KB 12.01 KB 0.59 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js.br 49.00 KB 44.98 KB 0.92 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm.gz 923.81 KB 896.87 KB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg.gz 13.14 KB 7.83 KB 0.60 0.00
SOD - New Blazor Template - Publish - Aggregate - .woff 14.63 KB 8.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf 27.37 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot 27.54 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff.br 14.56 KB 7.95 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js 236.66 KB 220.04 KB 0.93 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot.br 13.38 KB 7.51 KB 0.56 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff.gz 14.61 KB 8.01 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map.gz 99.68 KB 7.78 KB 0.08 0.00
SOD - New Blazor Template - Publish - pub 15.21 MB 14.22 MB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.gz 22.70 KB 7.83 KB 0.34 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff 14.63 KB 8.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.timezones.blat.gz 72.68 KB 71.50 KB 0.98 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map 611.28 KB 34.05 KB 0.06 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg.br 10.65 KB 6.44 KB 0.60 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js.gz 56.51 KB 51.81 KB 0.92 0.00
SOD - New Blazor Template - Publish - Aggregate - .css 166.59 KB 61.94 KB 0.37 0.00
SOD - New Blazor Template - Publish - Aggregate - .map 611.28 KB 34.05 KB 0.06 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg 54.04 KB 31.32 KB 0.58 0.00
SOD - New Blazor Template - Publish - SOD - New Blazor Template - Publish 15.21 MB 14.22 MB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf.br 11.17 KB 6.95 KB 0.62 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll 44.00 KB 96.50 KB 2.19 0.00
SOD - New Blazor Template - Publish - pub - Count 166.00 count 169.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll 247.00 KB 255.50 KB 1.03 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.JSInterop.dll.gz 13.87 KB 14.09 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll.gz 7.36 KB 8.64 KB 1.17 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.JSInterop.dll 30.50 KB 31.00 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll.gz 19.96 KB 35.57 KB 1.78 0.00
SOD - New Blazor Template - Publish - Aggregate - .gz - Count 55.00 count 56.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll.br 5.81 KB 7.04 KB 1.21 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/emptyblazorwasmtemplate.dll.gz 6.98 KB 7.07 KB 1.01 0.00
SOD - New Blazor Template - Publish - Aggregate - .br - Count 55.00 count 56.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll 18.00 KB 20.50 KB 1.14 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.br 81.97 KB 84.31 KB 1.03 0.00
SOD - New Blazor Template - Publish - SOD - New Blazor Template - Publish - Count 166.00 count 169.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll.br 17.62 KB 28.29 KB 1.61 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.gz 95.87 KB 98.57 KB 1.03 0.00
SOD - New Blazor Template - Publish - Aggregate - .dll 1.85 MB 1.91 MB 1.03 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.dll.br 8.39 KB 8.56 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/emptyblazorwasmtemplate.dll.br 6.24 KB 6.34 KB 1.02 0.00

graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
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 - 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

@ghost
Copy link

ghost commented Jun 23, 2021

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

Issue Details

When we went from 6.0.100-preview.6.21318.1 -> 6.0.100-preview.6.21318.5 we saw the below regressions and improvements.

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a02b668214e9711cb3d5f426f085601698a24b92
Compare ca3c11d64516217134430d04354ac770b07c91ef
Diff Diff

Improvemnts in SOD - New Blazor Template - Publish

Benchmark Baseline Test Test/Base Test Quality Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.br 16.89 KB 6.31 KB 0.37 0.00
SOD - New Blazor Template - Publish - Aggregate - .svg 54.04 KB 31.32 KB 0.58 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf.br 13.34 KB 7.51 KB 0.56 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm 2.11 MB 2.04 MB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map.br 58.30 KB 6.53 KB 0.11 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot.gz 14.77 KB 7.90 KB 0.53 0.00
SOD - New Blazor Template - Publish - Aggregate - .br 2.55 MB 2.45 MB 0.96 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css 152.11 KB 47.45 KB 0.31 0.00
SOD - New Blazor Template - Publish - Aggregate - .gz 3.26 MB 3.11 MB 0.96 0.00
SOD - New Blazor Template - Publish - Aggregate - .ttf 27.37 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf.gz 12.52 KB 7.91 KB 0.63 0.00
SOD - New Blazor Template - Publish - Aggregate - .otf 20.50 KB 12.01 KB 0.59 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf.gz 14.71 KB 7.90 KB 0.54 0.00
SOD - New Blazor Template - Publish - Aggregate - .eot 27.54 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - Aggregate - .wasm 2.11 MB 2.04 MB 0.97 0.00
SOD - New Blazor Template - Publish - Aggregate - .js 288.88 KB 272.53 KB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm.br 756.30 KB 734.47 KB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf 20.50 KB 12.01 KB 0.59 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js.br 49.00 KB 44.98 KB 0.92 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm.gz 923.81 KB 896.87 KB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg.gz 13.14 KB 7.83 KB 0.60 0.00
SOD - New Blazor Template - Publish - Aggregate - .woff 14.63 KB 8.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf 27.37 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot 27.54 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff.br 14.56 KB 7.95 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js 236.66 KB 220.04 KB 0.93 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot.br 13.38 KB 7.51 KB 0.56 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff.gz 14.61 KB 8.01 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map.gz 99.68 KB 7.78 KB 0.08 0.00
SOD - New Blazor Template - Publish - pub 15.21 MB 14.22 MB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.gz 22.70 KB 7.83 KB 0.34 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff 14.63 KB 8.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.timezones.blat.gz 72.68 KB 71.50 KB 0.98 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map 611.28 KB 34.05 KB 0.06 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg.br 10.65 KB 6.44 KB 0.60 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js.gz 56.51 KB 51.81 KB 0.92 0.00
SOD - New Blazor Template - Publish - Aggregate - .css 166.59 KB 61.94 KB 0.37 0.00
SOD - New Blazor Template - Publish - Aggregate - .map 611.28 KB 34.05 KB 0.06 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg 54.04 KB 31.32 KB 0.58 0.00
SOD - New Blazor Template - Publish - SOD - New Blazor Template - Publish 15.21 MB 14.22 MB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf.br 11.17 KB 6.95 KB 0.62 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll 44.00 KB 96.50 KB 2.19 0.00
SOD - New Blazor Template - Publish - pub - Count 166.00 count 169.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll 247.00 KB 255.50 KB 1.03 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.JSInterop.dll.gz 13.87 KB 14.09 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll.gz 7.36 KB 8.64 KB 1.17 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.JSInterop.dll 30.50 KB 31.00 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll.gz 19.96 KB 35.57 KB 1.78 0.00
SOD - New Blazor Template - Publish - Aggregate - .gz - Count 55.00 count 56.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll.br 5.81 KB 7.04 KB 1.21 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/emptyblazorwasmtemplate.dll.gz 6.98 KB 7.07 KB 1.01 0.00
SOD - New Blazor Template - Publish - Aggregate - .br - Count 55.00 count 56.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll 18.00 KB 20.50 KB 1.14 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.br 81.97 KB 84.31 KB 1.03 0.00
SOD - New Blazor Template - Publish - SOD - New Blazor Template - Publish - Count 166.00 count 169.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll.br 17.62 KB 28.29 KB 1.61 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.gz 95.87 KB 98.57 KB 1.03 0.00
SOD - New Blazor Template - Publish - Aggregate - .dll 1.85 MB 1.91 MB 1.03 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.dll.br 8.39 KB 8.56 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/emptyblazorwasmtemplate.dll.br 6.24 KB 6.34 KB 1.02 0.00

graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
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 - 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

Author: DrewScoggins
Assignees: -
Labels:

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

Milestone: -

@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.

@eerhardt
Copy link
Member

The 2 assemblies that increased in size are:

  • System.Text.Json
  • Microsoft.AspNetCore.Components.WebAssembly

Comparing the Microsoft.AspNetCore.Components.WebAssembly assembly, I see these differences:

image

The increase is due to #32374, where ASP.NET is now using System.Text.Json's source generator for its internal types. This means we are in a "worst of both worlds" situation for size because both the STJ reflection serialization and source generation serialization is being used in the app - which means both code paths need to be preserved.

@layomia @pranavkm

However, on a positive note - dotnet.wasm went from 757 KB to 735 KB, which offsets the size increase due to JSON serialization.

@pranavkm
Copy link
Contributor

Would changing the JsonSerializable to only include metadata help? The code specifically only ever deserializes the types specified on the context.

@eerhardt
Copy link
Member

If you only ever deserialize, then yes I think it would help. There would be no reason to generate the Serialize code, it is dead code.

@layomia
Copy link

layomia commented Jun 23, 2021

If you only ever deserialize, then yes I think it would help. There would be no reason to generate the Serialize code, it is dead code.

👍 on top of this, dotnet/runtime#54527 might also help reduce a bit of size since the generator would now apply the generation mode specified for a type to other "nested" types in its object graph (rather than use the default of both serialization and metadata).

@ghost
Copy link

ghost commented Jun 24, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

When we went from 6.0.100-preview.6.21318.1 -> 6.0.100-preview.6.21318.5 we saw the below regressions and improvements.

Run Information

Architecture x64
OS ubuntu 18.04
Baseline a02b668214e9711cb3d5f426f085601698a24b92
Compare ca3c11d64516217134430d04354ac770b07c91ef
Diff Diff

Improvemnts in SOD - New Blazor Template - Publish

Benchmark Baseline Test Test/Base Test Quality Baseline IR Compare IR IR Ratio Baseline ETL Compare ETL
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.br 16.89 KB 6.31 KB 0.37 0.00
SOD - New Blazor Template - Publish - Aggregate - .svg 54.04 KB 31.32 KB 0.58 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf.br 13.34 KB 7.51 KB 0.56 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm 2.11 MB 2.04 MB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map.br 58.30 KB 6.53 KB 0.11 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot.gz 14.77 KB 7.90 KB 0.53 0.00
SOD - New Blazor Template - Publish - Aggregate - .br 2.55 MB 2.45 MB 0.96 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css 152.11 KB 47.45 KB 0.31 0.00
SOD - New Blazor Template - Publish - Aggregate - .gz 3.26 MB 3.11 MB 0.96 0.00
SOD - New Blazor Template - Publish - Aggregate - .ttf 27.37 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf.gz 12.52 KB 7.91 KB 0.63 0.00
SOD - New Blazor Template - Publish - Aggregate - .otf 20.50 KB 12.01 KB 0.59 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf.gz 14.71 KB 7.90 KB 0.54 0.00
SOD - New Blazor Template - Publish - Aggregate - .eot 27.54 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - Aggregate - .wasm 2.11 MB 2.04 MB 0.97 0.00
SOD - New Blazor Template - Publish - Aggregate - .js 288.88 KB 272.53 KB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm.br 756.30 KB 734.47 KB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf 20.50 KB 12.01 KB 0.59 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js.br 49.00 KB 44.98 KB 0.92 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.wasm.gz 923.81 KB 896.87 KB 0.97 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg.gz 13.14 KB 7.83 KB 0.60 0.00
SOD - New Blazor Template - Publish - Aggregate - .woff 14.63 KB 8.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf 27.37 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot 27.54 KB 15.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff.br 14.56 KB 7.95 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js 236.66 KB 220.04 KB 0.93 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.eot.br 13.38 KB 7.51 KB 0.56 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff.gz 14.61 KB 8.01 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map.gz 99.68 KB 7.78 KB 0.08 0.00
SOD - New Blazor Template - Publish - pub 15.21 MB 14.22 MB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.gz 22.70 KB 7.83 KB 0.34 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.woff 14.63 KB 8.03 KB 0.55 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.timezones.blat.gz 72.68 KB 71.50 KB 0.98 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/bootstrap/bootstrap.min.css.map 611.28 KB 34.05 KB 0.06 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg.br 10.65 KB 6.44 KB 0.60 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/dotnet.VERSION.js.gz 56.51 KB 51.81 KB 0.92 0.00
SOD - New Blazor Template - Publish - Aggregate - .css 166.59 KB 61.94 KB 0.37 0.00
SOD - New Blazor Template - Publish - Aggregate - .map 611.28 KB 34.05 KB 0.06 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.svg 54.04 KB 31.32 KB 0.58 0.00
SOD - New Blazor Template - Publish - SOD - New Blazor Template - Publish 15.21 MB 14.22 MB 0.94 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/css/open-iconic/font/fonts/open-iconic.otf.br 11.17 KB 6.95 KB 0.62 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll 44.00 KB 96.50 KB 2.19 0.00
SOD - New Blazor Template - Publish - pub - Count 166.00 count 169.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll 247.00 KB 255.50 KB 1.03 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.JSInterop.dll.gz 13.87 KB 14.09 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll.gz 7.36 KB 8.64 KB 1.17 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.JSInterop.dll 30.50 KB 31.00 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll.gz 19.96 KB 35.57 KB 1.78 0.00
SOD - New Blazor Template - Publish - Aggregate - .gz - Count 55.00 count 56.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll.br 5.81 KB 7.04 KB 1.21 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/emptyblazorwasmtemplate.dll.gz 6.98 KB 7.07 KB 1.01 0.00
SOD - New Blazor Template - Publish - Aggregate - .br - Count 55.00 count 56.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.dll 18.00 KB 20.50 KB 1.14 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.br 81.97 KB 84.31 KB 1.03 0.00
SOD - New Blazor Template - Publish - SOD - New Blazor Template - Publish - Count 166.00 count 169.00 count 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.dll.br 17.62 KB 28.29 KB 1.61 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/System.Text.Json.dll.gz 95.87 KB 98.57 KB 1.03 0.00
SOD - New Blazor Template - Publish - Aggregate - .dll 1.85 MB 1.91 MB 1.03 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.dll.br 8.39 KB 8.56 KB 1.02 0.00
SOD - New Blazor Template - Publish - pub/wwwroot/_framework/emptyblazorwasmtemplate.dll.br 6.24 KB 6.34 KB 1.02 0.00

graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
graph
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 - 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

Author: DrewScoggins
Assignees: -
Labels:

arch-wasm, area-Meta, size-reduction, tenet-performance, tenet-performance-benchmarks, untriaged

Milestone: -

@marek-safar
Copy link
Contributor

Reading the comments this looks like aspnetcore issue

@lewing
Copy link
Member

lewing commented Jun 24, 2021

cc @dotnet/aspnet-blazor-eng

@eerhardt
Copy link
Member

Reading the comments this looks like aspnetcore issue

Agreed. Transferring to aspnetcore, since that is where the fix will need to be made.

@eerhardt eerhardt transferred this issue from dotnet/runtime Jun 30, 2021
@Pilchie Pilchie added the area-blazor Includes: Blazor, Razor Components label Jun 30, 2021
@pranavkm pranavkm added this to the 6.0-preview7 milestone Jul 2, 2021
@ghost ghost added the Working label Jul 2, 2021
@ghost ghost added the Done This issue has been fixed label Jul 6, 2021
pranavkm added a commit that referenced this issue Jul 6, 2021
* Write readers for reading WebEventData JSON payloads

* Adding source generators without doing all of the work results in a size increase. We can avoid issues with reflection
and the additional size hit by writing bespoke readers.
* An additional optimziation this PR includes is to avoid a unicode string -> utf8 byte conversion along with the associated
string allocation by using JsonElement as the contract for deserializing JSON payload. At least in the Blazor Server scenario,
we could further consider pooling the byte array used for receiving and deserializing the JSON payload making parsing browser events largely allocation free.

Fixes #33967
@ghost ghost removed the Working label Jul 6, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 5, 2021
@mkArtakMSFT mkArtakMSFT added the bug This issue describes a behavior which is not expected - a bug. label Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. Done This issue has been fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants