Re: timing ASP pages on IIS4

by "Srinivasan Ramakrishnan" <srinivar(at)md3.vsnl.net.in>

 Date:  Fri, 6 Apr 2001 17:34:20 +0530
 To:  "Andrew Browne" <abrowne(at)pbm.co.za>,
<hwg-languages(at)hwg.org>
 References:  ANDREW
  todo: View Thread, Original
>Can anyone suggest a good method for timing how long it takes to process an
ASP page on IIS4?  I'm not necessarily >interested in the time it takes for
the HTTP request to reach the server, nor the time it takes for the HTML
output to >reach the client - just the amount of server time it requires for
the ASP page to be processed and the HTML to be >enerated.

Hm.... I've not done this on ASP, but what I do in PHP is I call microtime()
at the start of the page (usually the first line) & store in a variable t1,
and do the same at the end of the page (usually second last line) & store it
in t2.

I then subtract t1 from t2 to get the time it took for the page to be
executed, and I print this out along with the page on the last line.

Note::
Use a time function that will get you microseconds, since most pages will be
parsed in under a second.


-Srini
--
http://www.sriniram.com
http://symonds.net/~sriniram

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA