Two sections highlighted above.
1st - Mini-Profiler telling me how much time execution of a Controller/Action is taking (called via ajax)
87ms
2nd - Chrome Web Inspector telling me how much time the same ajax request is taking to complete
535 ms
Using glimpse, I figured that execution of the other lifecycle events (base controller / filters) took ~22ms.
Looking for guidance to figure out where the rest of the time is going.
Thanks.
Edit
This is almost consistent (variance is ~10 - 20 ms in both values - Mini-Profiler's and Chrome Inspector's).
These results are for an online request against a production server (VPS) running IIS 7.5. When these numbers are measured on a dev machine (localhost running IIS express), difference in Mini-Profiler and Chrome Inspector results isn't as significant.
Since these requests are against an online resource you need to account for the latency.
For example take this:
Server time is merely 118ms, however the dns lookup takes 598ms, connecting takes another 205ms and the response only comes back +1173ms after I visited the page. Finally the DOM only starts rendering 1.27 seconds in.
The server bits only account for time spent on the server inside your app.
You must add to that.
[waiting time]
[/waiting time]
(and then there is the interdependency of JavaScript and CSS that I am not going to touch on here)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With