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.