Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC rendering seems slow
    text
    copied!<p>I've created a brand new MVC4 web application in Visual Studio, and done nothing more with it than add a Home controller and a "Hello world" index view for it. I then installed the MiniProfiler NuGet package and put the necessary couple of lines in <code>_Layout.cshtml</code>. This is what I get when I run the site in Release mode (hosted in IIS):</p> <p><img src="https://i.stack.imgur.com/cboLY.png" alt="MVC rendering picture"></p> <p>The rendering time varies by pageload, but 130ms is about as fast as it gets. This seems a bit slow to me, as I've seen other people who get pages rendered in 30ms or quicker. Any ideas why the rendering would be this slow with a brand new empty MVC4 project? My processor is an Intel Core i5-2400 and the machine has 16GB RAM.</p> <p>By the way, this is <em>not</em> the first time the page is loaded; I reloaded the page a few times before getting this 130ms result.</p> <p><strong>UPDATE:</strong><br> I followed the advice in the answer from PSCoder (remove all but the RazorViewEngine), and it halved the rendering time:</p> <p><img src="https://i.stack.imgur.com/wqAxU.png" alt="MVC rendering picture 2"></p> <p>This is really good, but I still get about 70ms or higher for the main <code>Render</code> action of the page; ideally I'd like to halve that or better.</p> <p>Specifically, I'd like to ask:</p> <ul> <li>Does this rendering time seem overly slow or is it average for my machine?</li> <li>Is there any way I can speed it up?</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload