Calculating load time on a ASP.NET page
.net, asp.net
Solution
Firebug will actually give you 1 and 3 as well in the "Net" tab, and provides nice little split-up graphical bars that show you the components of the response time (DNS lookup, querying the server, waiting for first byte, download time).
There isn't really one tool that could possibly do both the client and server measurements, since the server code is running on the server, and the client code is running on the client. You could approximate simply by subtracting away all the other times from the total, but the most accurate server result will indeed be from the server itself.
Problem
Say, I want to calculate the time taken to load a ASP.NET page. When a user types the URL and presses enter, the following events take place: - Request is sent to the server - Server processes the request, executes any on load server side logic, makes DB calls - Browser receives the response, downloads HTML and JS files - Browser runs client side logic (Javascript functions on load) - Browser renders the page If I would like to measure the time taken for each of these operations, my understanding is that I can use the following tools: - For (1), use Fiddler to calculate time over the Network - For (2), switch on trace to calculate time for server side processing - For (3), use Fiddler to calculate the time taken for download - For (4), use firebug for time taken by JS functions Summing up 1 to 4 gives the total time taken. Is my thinking correct? Is there one tool that does all this? Is there an easier way