An empty MVC 4 application created from Internet template takes about 20-30 seconds to load after hitting F5 and another 15-20 seconds after I click
Log In or Register link to show login/register screen, after this it takes few milliseconds to load next screens.
So it is not a performance issue from user perspective, but from a developer. I used to develop using web-services before and it used to take just a second to reload a web-site after code change. And here I sit and wait for a minute....
do you keep your IIS (Express) warm and only compile your source again? Or do you stop your server each time? The 20-30 seconds hit sounds like the warming up time needed.
chaoren
May be I have to buy an SSD?
I admit that since I put an SSD drive in my laptop, also 8Gb, it becomes all way faster so I didn't regret the purchase at all.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
compilation takes 3-4 sec, but startup each time takes 20 seconds and then first click on Register link takes another 10-15 seconds. If I change the code and repeat immediately - the result is the same
I suggest you make use of IIS Express then, keep the browser open, rebuild your solution and then simply ctrl + F5 your browser. That's how I usually work. But really invest in an SSD as I don't see such long waiting times anymore on my machine since I did.
I also moved over to VS2012 and a clean install of Windows 8 at the same time.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
sure, Intel series 520 240Gb. Bit costly but worth it so far. There are faster SSD out there but this one scored high on reliability. One of my colleagues had another brand but it died after a month. A replacement under guarantee also died after 1.5 months.
This one I have is holding on steadily (fingers crossed) since August and I'm happy with it.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chaoren
Member
11 Points
36 Posts
MVC 4 performance
Dec 23, 2012 08:38 AM|LINK
I have a Asus K43T with 8GB of memory
An empty MVC 4 application created from Internet template takes about 20-30 seconds to load after hitting F5 and another 15-20 seconds after I click Log In or Register link to show login/register screen, after this it takes few milliseconds to load next screens.
So it is not a performance issue from user perspective, but from a developer. I used to develop using web-services before and it used to take just a second to reload a web-site after code change. And here I sit and wait for a minute....
Any suggestions?
May be I have to buy an SSD?
XIII
All-Star
182707 Points
23464 Posts
ASPInsiders
Moderator
MVP
Re: MVC 4 performance
Dec 23, 2012 12:07 PM|LINK
Hi,
do you keep your IIS (Express) warm and only compile your source again? Or do you stop your server each time? The 20-30 seconds hit sounds like the warming up time needed.
I admit that since I put an SSD drive in my laptop, also 8Gb, it becomes all way faster so I didn't regret the purchase at all.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chaoren
Member
11 Points
36 Posts
Re: MVC 4 performance
Dec 23, 2012 12:12 PM|LINK
the time is for compilation. So if I do two times one after another the time is the same
XIII
All-Star
182707 Points
23464 Posts
ASPInsiders
Moderator
MVP
Re: MVC 4 performance
Dec 23, 2012 12:24 PM|LINK
Hi,
So the time to compile takes 25 seconds? In that case yes an SSD will help you out.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chaoren
Member
11 Points
36 Posts
Re: MVC 4 performance
Dec 23, 2012 12:31 PM|LINK
sorry I wanted to say - the startup after compile
compilation takes 3-4 sec, but startup each time takes 20 seconds and then first click on Register link takes another 10-15 seconds. If I change the code and repeat immediately - the result is the same
XIII
All-Star
182707 Points
23464 Posts
ASPInsiders
Moderator
MVP
Re: MVC 4 performance
Dec 23, 2012 12:34 PM|LINK
Hi,
I suggest you make use of IIS Express then, keep the browser open, rebuild your solution and then simply ctrl + F5 your browser. That's how I usually work. But really invest in an SSD as I don't see such long waiting times anymore on my machine since I did. I also moved over to VS2012 and a clean install of Windows 8 at the same time.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chaoren
Member
11 Points
36 Posts
Re: MVC 4 performance
Dec 23, 2012 12:37 PM|LINK
May I ask you which SSD did you buy personally?
XIII
All-Star
182707 Points
23464 Posts
ASPInsiders
Moderator
MVP
Re: MVC 4 performance
Dec 23, 2012 12:44 PM|LINK
Hi,
sure, Intel series 520 240Gb. Bit costly but worth it so far. There are faster SSD out there but this one scored high on reliability. One of my colleagues had another brand but it died after a month. A replacement under guarantee also died after 1.5 months. This one I have is holding on steadily (fingers crossed) since August and I'm happy with it.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chaoren
Member
11 Points
36 Posts
Re: MVC 4 performance
Dec 23, 2012 12:50 PM|LINK
cool thanks
dusan.jakovl...
Member
4 Points
2 Posts
Re: MVC 4 performance
Dec 24, 2012 02:08 AM|LINK
Hello
I have also timing issue with Log In and Register for both local and online version (http://www.onlinewebtesting.com/).
I have just installed MVC 4 for Visual Studio Express 12 and have created and published default Web Project MVC 4.
I haven't had this issue with MVC 3.
Thanks
Dusan