ASP Performance test report (turn) (vii)

Source: Internet
Author: User
Setting Option Explicit at the front of the ASP page requires that all variables be declared before they are used. For two reasons, this statement is usually recommended: first, applications can handle variables more quickly, and second, prevent unintended variables from being misused. In the following test, we removed Option Explicit and all dim statements.
Benchmark = 5.57 MS/page
Response time = 6.12 MS/page
difference = +0.55 milliseconds (increase by 9.8%)

Although we removed some code from the page, the response time still increased. Using Option Explicit can result in lengthy code, but its presence is good for performance. So, we have the following rule:
Always use option Explicit in VBScript.

Related Article

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.