- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10.5k
 
Closed
Labels
Milestone
Description
Describe the bug
There is a ~850ms regression in the BlazorServer template build time in the perf lab.
To Reproduce
- Download the latest SDK.
 - dotnet new blazorserver
 - dotnet build
 
On my local machine, this shows up as a warm regression (not the first run) of 197ms. Here are the longest 6 targets of each run. I have narrowed it down to at the CoreCompile target - possibly some affect from ResolveAssemblyReferences.
Baseline:
Event Name | Time MSec | Process Name | DURATION__MSEC | targetName
Microsoft-Build/Target/Stop | 7,469.455 | dotnet (21624) | 290.792 | CoreCompile
Microsoft-Build/Target/Stop | 7,021.423 | dotnet (21624) | 196.984 | ResolveAssemblyReferences
Microsoft-Build/Target/Stop | 7,798.614 | dotnet (21624) | 193.787 | _GenerateScopedCssFiles
Microsoft-Build/Target/Stop | 6,535.790 | dotnet (21624) | 190.571 | Restore
Microsoft-Build/Target/Stop | 7,584.268 | dotnet (21624) | 114.501 | _CreateAppHost
Microsoft-Build/Target/Stop | 7,915.979 | dotnet (21624) | 101.780 | RazorCoreCompile
Regression:
Event Name | Time MSec | Process Name | DURATION__MSEC | targetName
Microsoft-Build/Target/Stop | 5,206.817 | dotnet (22608) | 506.903 | CoreCompile
Microsoft-Build/Target/Stop | 5,585.427 | dotnet (22608) | 241.141 | _GenerateScopedCssFiles
Microsoft-Build/Target/Stop | 4,544.413 | dotnet (22608) | 202.694 | ResolveAssemblyReferences
Microsoft-Build/Target/Stop | 4,075.320 | dotnet (22608) | 191.395 | Restore
Microsoft-Build/Target/Stop | 5,326.960 | dotnet (22608) | 119.798 | _CreateAppHost
Microsoft-Build/Target/Stop | 5,701.839 | dotnet (22608) | 97.088 | RazorCoreCompile
I can share traces if it's helpful.