aspnet / JitBench

Repo for testing JIT stuff
Other
15 stars 24 forks source link

Announcement: Precompilation was on by default #69

Closed rynowak closed 6 years ago

rynowak commented 7 years ago

Summary We were hit by a change in the web SDK's default behavior, and view compilation during publishing got turned on by default for rel/2.0.0-* branches. I don't have an estimate about when this happened.

Impact This should have a big effect on the 'first request' numbers (~1500ms).

Scenarios The way to think about this is: View Compilation on Publish on - simulates startup of a published application View Compilation on Publish off - simulates startup during local development

Both of these are worth measuring, but from my team's point of view, view compilation off is more interesting when talking about optimizations for startup.

Plans My plan is to turn this back off. I will add some output to the console spew to make it obvious which one was used.

Use dotnet publish .... /p:MvcRazorCompileOnPublish=true to turn this on.


As usual, if you have concerns or feedback about this plan please raise it soon. Otherwise I will make this change in the next few days.