ASP Performance test report (Turn) (i)

Source: Internet
Author: User
Performance ASP dynamically generated content in what way to output the most efficient? What is the best way to extract a database recordset? This article tests common problems with nearly 20 such ASP developments, and the time the test tools show tells us that the questions that are often taken for granted are not only noteworthy, but also unexpected secrets hidden.



Original source: http://www.asptoday.com/articles/20000113.htm

Compiled as follows:

ASP developers are always pursuing better application performance and scalability. While there are many books and Web sites that can provide excellent advice for achieving these goals, these recommendations are often based on the judgment of the ASP's working principles and do not allow any quantitative analysis of the actual performance improvement. Since these recommendations often imply the complexity of the coding process and reduce the readability of the code, developers cannot assess whether the cost of complying with these recommendations is justified by the performance improvement of the ASP application and cannot see any measurement of actual performance.

This article provides some performance testing and analysis results for ASP code, hoping to help the ASP developers understand whether their coding habits are worth continuing in future projects, or the need to modify existing projects for better performance. This article is divided into two parts: in the first part, we examine some basic problems in ASP development; In the second part, we will delve into the test of ADO application optimization. In the test we found that many of the test results are not only compelling, but also surprisingly.

The first part will answer the following questions:

What is the most efficient way to output content generated dynamically by ASP?
How much performance impact does buffering enable?
How does annotation in ASP code affect execution efficiency?
Should you explicitly set the default scripting language for the page?
If session state is not required, is it necessary to close it?
Does putting code into a procedure or function affect performance?
Does using the include file have an impact on performance?
How much overhead does it mean to implement error control?
Does setting the transaction context reduce code efficiency?
What is the effect of VBScript Option explicit on performance?
The tool used for testing is the Microsoft Web application Stress Tool (WAST), a free tool located in http://webtool.rte.microsoft.com/. In Wast, we use a simple wast test script to repeatedly invoke the test ASP page described below (each more than 70,000 times). The response time is based on the average "cumulative time until the last byte", which means the sum of time from the first request to the last byte of the server's answer data received from the Test tool byte,ttlb.

The test server is the Pentium 166 of 196 MB memory, and the client is Pentium 450 of 256 MB memory. Some readers may think these machines are not very good, but this is not important, because we are not testing the capabilities of the server, but only use the server to process a page of the time needed to measure the efficiency of the script execution. There are no other tasks running on the two machines at the time of the test. Test wast Scripts and ASP pages are attached to the zip file later in this article, and readers can download it for the same test.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.