Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance Testing for Classic ASP pages?

I would like to know how to do performance testing for the old asp pages. Any tools out there that you've used?

like image 551
Newbie Avatar asked Dec 29 '08 16:12

Newbie


People also ask

Is Classic ASP still used?

It used scripting on the server to create content that would then be sent to a client's web browser, and as a result it enjoyed a tremendous amount of success. Classic ASP, however, is no longer being developed by Microsoft at all – it has long since been replaced by ASP.NET in 2002, a newer alternative.

Is Classic ASP deprecated?

The answer is clearly "Yes, Classic ASP is supported, and No, it will not disappear". To convince you, with each new version of Windows Server, Microsoft indicates a total support of the ASP platform throughout the lifecycle of Windows Server, i.e. at least 10 years from its release.

Is Classic ASP compiled or interpreted?

ASP Classic is comprised of VBScript or JavaScript interpreted at run-time which means each page has a specific performance hit doe to line by line interpretation. The interpretation of the pages simply results in some inefficiency. ASP.NET however compiles the code the first time it is accessed.

How do I run classic ASP files?

Click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then World Wide Web Services, then Application Development Features. Select ASP, and then click OK.


2 Answers

PS: I'm assuming by old ASP you are referring to "Classic ASP" not ASP.NET.

Here's a little piece of VBScript code I would put on pages to figure out how long they took to execute, you might find it useful.

<%
' Start the timer
starttime = timer()
%>

<!-- HTML and Code Here -->

<%
' End the timer
endtime = timer()
' Get the difference
benchmark = endtime - starttime
' Output the timing result
%>
<div class="noprint"><div class="debug">
<span class="text">Execute: <%= benchmark %> secs</span>
</div></div>
like image 122
TravisO Avatar answered Nov 08 '22 10:11

TravisO


There's nothing special as to how stress test an ASP web application. Profiling is a different matter.

For stress testing I recommend The Grinder (once and again and again :-) )

I haven't profiled ASP applications so I cannot help you there.

like image 41
Vinko Vrsalovic Avatar answered Nov 08 '22 11:11

Vinko Vrsalovic