ASP. NET three compilation mode stress testing

Source: Internet
Author: User

Some time ago, due to work needs, a simple LoadRunner stress test was conducted on the three compilation modes of ASP. NET. Including ASP. net website site dynamic compilation, website site prerelease, and webapplication pre-compiled release modes mean total response time, first buffer time mean, and CPU peak value in three cases with 200,500,100 concurrent users.

In order to make the data objective and fair as much as possible, and to keep the test value from getting together, I chose a medium-sized project in our company, which is representative, the relatively complex homepage services are developed into three projects: websitecode (dynamic compilation), websiterelease (prerelease), and webapplication (release). In the relatively independent test environment of the company, use LoadRunner for testing. Due to the time relationship, only data of 200,500,100 concurrent users can be sorted out. It may not be completely accurate to describe anything, but only hope to give some inspiration.

Detailed data is provided below

 

Average Response Time


 

Personal analysis: From the above data (charts), we can see that the pre-Distribution of website has a comparative advantage over the total service time as the number of concurrent users increases, the average value is about 1 second :) of course, there is no obvious difference between concurrent users and below 200, but the dynamic compilation of website is the worst :(

  

First buffer time average


Personal analysis: frist buffer time is my most important data, because there are such uncontrollable and unpredictable factors in network transmission, therefore, this time can objectively describe the first access time of the three compilation modes. In the above data and images, we can see that the website is so abnormal. Of course, this is not hard to imagine. But what makes us "slightly surprised" is that the concurrency is about less than 800, and the webapplication is slightly worse than the website prerelease mode :(

CPU peak

Personal analysis: the above is the instantaneous CPU peak. It can be seen that the CPU in the website pre-release mode is the most worrying, followed by webaplication, and the most dynamic compilation of website, in addition, the dynamic compilation of website is less than 500 in concurrency, and it seems that there is no CPU increase.

 

Conclusion: since we first came into contact with. net1.1, we have been using the webapplication Method for project architecture and design, and are used to packaging all cs into a uniform DLL. Since the release of vs2005, I have done a lot of website projects, but I have no choice but to use websiterelease for one year. As a result, I found that website updates cannot be released every day using websiterelease, so I also used a plug-in tool named Web develpment. Fortunately, vs2005sp1 didn't take long to replace it. Then, the website dynamic site reports Byebye.

Like many development predecessors and brothers, I can't say anything about dynamic website compilation, but I can't resist it from the bottom of my heart, after all, its "loose" Project Management Philosophy makes the rigorous project development seem less reliable, just think that something is stuck in the throat !! However, it is often difficult to tell why it matches its primary key. In addition, the only thing that can be convinced is compile! Through the above data, we can see that no matter what compilation mode, there are advantages and disadvantages.

According to the data of our testing department, the charge is probably calculated as follows. The number of concurrent users is about 1000 PV every day. If your company team has more than 20 technical staff, PV is 10 million level, no doubt, please select webapplication, whether it is the performance stability of its CPU, transient response stability. However, if your company has less than three technicians who visit more than 0.1 million every day, dynamic website compilation is a good choice.

 

Nan xiaobin

2010.11.1

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.