Webbench Code Reading

Source: Internet
Author: User

 

Brief introduction:

Webbech can test the performance of different services on the same hardware, as well as the health of the same service on different hardware. Webbech's standard tests can show us two things about the server: The corresponding number of requests per second and the amount of data transferred per second. Webbench can not only have a quasi-static page testing ability, but also to Dynamic page (asp,php,java,cgi) into The ability to test. And he supports static or dynamic performance testing of secure websites that contain SSL, such as e-commerce sites.

Xxxxxxxxxxxxxxxxxxxxxxxxx Spit groove, can be ignored xxxxxxxxxxxxxxxxxxxxxx

OK, I admit good high-end, but the whole code is hundreds of lines, or count the comments ah, after reading, there is no dynamic web testing, SSL security website test what options Ah!!!!

, only select the HTTP protocol request Header option Yes, what get,head, and so on

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Understanding the code, you need to understand its business process first

Difficulty one: Get Web server information

Solve this problem, first of all you understand what you want to test? What you want to test is the ability of a Web server to respond to a large number of requests, which is called stress testing. All you have to do is construct a large number of requests at the same time to achieve the test purpose.

The request is indicated by a URL-address connection , and you need to understand what the URL-address connection consists of, and where you want to get the necessary information to make up the request. The general mode of the URL is

Http://myname:[email protected]: 80/mydir/myfile.html?myvar=myvalue#myfrag

      

URI section

Significance

http

Agreement name

MyName

User name (optional)

Mypass

Password (optional)

www.vimer.cn

Host Network Address

80

Port number (optional)

/mydir/myfile.html

Resource Path

Myvar=myvalue

query string (optional)

Myfrag

Anchor Point (optional)

Webbench Code Reading

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.