Web Service Performance Testing Tool http_load (Linux platform)

Source: Internet
Author: User

Http_load home page (really a little rough): http://www.acme.com/software/http_load/

 

Download a compressed package and decompress the package without using Configure. directly make the package to generate the executable program http_load (depending on the system situation, you may need to modify the makefile and compile it again ). Note: There may be several warnings when using make, but it may not affect the use of the generated http_load program. For example, if I make on my own machine, these warnings are displayed:

 

Gcc-wall-o-c http_load.c

Http_load.c: In function 'main ':

Http_load.c: 413: Warning: Implicit declaration of function 'time'

Http_load.c: In function 'handle _ connect ':

Http_load.c: 937: Warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness

Gcc-wall-o-c timers. c

Gcc-wall-O http_load.o timers. O-S-O http_load

 

 

To use http_load to test web services, you need to write the list of URLs you need to access in a file (with random file names) and write a URL per line (this may be a bit strange ?).

 

Http_load is easy to use. Although it is a Web Service Performance Testing Tool, I can still use it to test web services at a very low access frequency, this is useful in some specific situations. For example, if I want http_load to access the Web Service 5 times per second and access the Web Service for 10 minutes in a row, this is not a stress test, however, we may need to implement such a condition in some cases, so http_load can be used.

 

For example, run:

./Http_load-rate 1-fetches 10 url_file

This command is used to access the URL defined in the file url_file at a frequency of one second, with a total of 10 accesses.

 

Returned results:

10 fetches, 2 max parallel, 5.36172e + 06 bytes, in 11.4289 seconds

536172 mean Bytes/connection

0.874978 fetches/sec, 469139 Bytes/sec

Msecs/Connect: 131.448 mean, 136.034 Max, 122.539 min

Msecs/first-response: 132.763 mean, 138.524 Max, 125.897 min

HTTP Response codes:

Code 200 -- 10

 

The final "200" indicates that the client request has been successful.

 

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.