Any simple MVC projects using net core.
similar speed when handling request
This ASP.NET 5 project was created using Visual Studio 2015, dnvm version 1.0.0-rc1-15540.
This project was created using dotnet new, cli version 1.0.0-rc2-002659
Both projects are only showing a simple page, You can see the time used to process request are huge difference.
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc2-002659)
Product Information:
Version: 1.0.0-rc2-002659
Commit Sha: 11a001706f
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
We are going to be making additional perf improvements after this milestone is over. This is a dupe of dotnet/sdk#5757
@piotrpMSFT I think this bug is about runtime performance (coreclr/corefx/asp.net/etc.) while dotnet/sdk#5757 is about performance of dotnet/cli tooling. Or am I overlooking anything?
I tested RC1 and today RC2. Created new project: "ASP.NET Core Web Application (.NET Core)" and "Empty" as ASP.NET Core template.
Test case A: 1) Run without debugging 2) wait for startup.cs to write "Hello world!" 3) modify text to "Hello world 2!" Ctrl+S 4) Hit F5 in browser.
Test case A results in RC1: IIS Express responds within 4-5 seconds with "Hello world 2!"
Test case A results in RC2: IIS Express responds within 4-5 seconds with "Hello world 2!" and avg compialtion time is 2.3 seconds.
Test case B: One simple controller and view. Controller action has ViewData["Message"] = "Hello world!"; and view shows that message. 1) Run without debugging 2) wait for controller to write "Hello world!" 3) modify text to "Hello world 2!" Ctrl+S 4) Hit F5 in browser.
Test case B results in RC1: IIS Express responds within 4-5 seconds with "Hello world 2!"
Test case B results in RC2: IIS Express responds within 9-12 seconds with "Hello world 2!" and avg compilation time is still the same 2.3 seconds.
So what is happening in the background with MVC now in RC2? Where is the extra 5 seconds wasted?
Will this be fixed in time for rtm?
Compilation in rc2 is a lot slower than it was in dnx.
Most helpful comment
Will this be fixed in time for rtm?
Compilation in rc2 is a lot slower than it was in dnx.