Often when you're developing script, you may want to determine
just how fast the code takes to run. To do so, take advantage of
ASP's built-in Timer function. As you may know, this function
returns the number of seconds since midnight. To use this
function, capture the current value before your script runs,
then again afterwards, and compare the two. While this
method can vary depending on processor speeds, it provides
a decent benchmark.
<body>
<% myStart = timer %>
<b>Start: <%= myStart%></b>
<br/>
<% For x = 1 to 1000
set myObj = Server.CreateObject("ADODB.Recordset")
set myObj = nothing
Next
myEnd = timer
%>
<b>End: <%=myEnd%></b>
<br/>
<b>Ellapsed Time: <%= myEnd - myStart %> (seconds)</b>
</body>
Monitoring performance in ASP
By ElementK Journals, published on 14 Jul 2001
| Filed in
You might also like...
ASP (3.0) forum discussion
-
Invitation to take part in an academic research study
by researchlab (0 replies)
-
How to insert & edit unique value using store procedure
by umeshdaiya (0 replies)
-
How to troubleshoot Epson laser printer?
by daisywyatt618 (0 replies)
-
view state is stored after the page post-back
by shriniwas.khatri852 (0 replies)
-
Transfer selected rows from one GridView to another GridView in aspxform(ASP.NET)
by dorsa (0 replies)
ASP (3.0) podcasts
-
Hanselminutes: Startup Series: Buying an Existing Small Company or Online Application
Published 8 years ago, running time 0h34m
Scott talks to Rob Walling about how he purchases small niche products and companies online and revitalizes them. He recently purchased an existing product that consisted of a 300 gig database and tens of thousands of lines of Classic ASP. How did he know it was valuable? What's next?
Comments