ASP Performance test report (Turn) (d)

Source: Internet
Author: User
Performance four, how does annotation in ASP code affect execution efficiency?
Many HTML developers know that adding HTML annotations is a bad habit. This is because: first, the annotation increases the amount of data transferred; second, the HTML annotation provides other developers with information about the page organization. So what about the comments in the ASP page? Comments in ASP are never seen by browsers, but they increase the size of the script that the ASP engine resolves.

In this test, we added 20 lines of comments, 80 characters per line, and a total of 16,000 characters.
<% OPTION EXPLICIT
'-------------------------------------------------------------------------------
... Lines ...
'-------------------------------------------------------------------------------
Dim FirstName
...
/app2/comment_1.asp Fragment

Benchmark = 5.57 MS/page
Response time = 5.58 ms/page
difference = +0.01 milliseconds (increase by 0.1%)




The result of the test was surprising. Although annotations increase the file size by more than twice times, the impact on response time is minimal. Therefore, we have the following rules:

If you use moderation, ASP annotations have minimal or no impact on performance.



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.