Web page load time measurement (C #)

I would like to know if there is an easy way to measure the time it takes when you press Enter until the web page is fully displayed / loaded. Should I use Timer to do this, or are there existing functions built into the web browser control (or .net framework) that I skipped?

thanks

+7
performance c # testing webpage
source share
6 answers

If you have control over an ASP.NET page, you can enable Trace. There you will get tons of page lifecycle information (including timestamps) and other useful profiling information.

Enable tracing for the page in the Page directive at the top of your aspx file:

 <%@ Page Trace="true" %> 

Or dynamically in the code:

 Trace.IsEnabled = true; 

Or globally in an application, set this to web.config:

 <configuration> <system.web> <trace enabled="true" requestLimit="40" localOnly="false"/> </system.web> </configuration> 

Also see the MSDN documentation for Trace.

+4
source share

Firebug (extension for Firefox) has a temporary panel under the "Net" tab.

+5
source share

Fiddler can check all web requests and show relevant timings.

+3
source share

Dynatrace is a fairly powerful tool for diagnosing client-side performance issues.

In combination with Fiddler it gives you the full timeframe from the original HTTP request until the rendering in webbrowser . It also contains some automatic diagnostics, where it informs the user about any hotstops/bottlenecks found in the HTML/Javascript code.

Until I find something better, this application is part of my standard toolbox when I need to investigate performance issues.

+1
source share

A simple google search shows everything :)

C # Page Loading Dates

It’s significant that you simply write down the time at the beginning of the Page_Load page and at the end and using some simple math to parse the difference, the loading time

0
source share

You can use some RUM tool to measure load time. This method is accurate because it uses api navigation in the browser, and timings are measured from the point of view of users. Here is a simple rum tool http://gear5.me and more complex: http://newrelic.com

0
source share

All Articles