Http_load Introduction:
Http_load is a performance measurement tool based on Linux platform. Run in parallel multiplexing to test Web server throughput and load, and test Web page performance.
Download and install:
wget http://www.acme.com/software/http_load/http_load-12mar2006.tar.gz
Tar xzvf http_load-12mar2006.tar.gz
CD http_load-12mar2006/
Make && make install
Http_load parameter Description:
Common parameter combinations:-p–f;-r-s
-P Concurrent Access process count
Total number of visits to-F
-R frequency of visits per second
-S total access time
Urlstxt is the name of the URL you want to visit, which can be either a single URL or a file containing the URL. Usually used as a file containing URLs, the file format is one url,url for each line preferably more than 50, the test results are better.
Http_load usage:
Create Url.txt, add Links:
http://www.jb51.net/category/php/
Http://www.jb51.net/php/iterate-algorithm.html
http://www.jb51.net/tag/web-safe/
http://timestamp.jb51.net/
To perform an action:
Use 5 processes to randomly access the list of Url.txt URLs, total visits 1000 times
Http_load-p 5-f 1000 Url.txt
return Result:
1000 fetches, 5 max parallel, 7.8623e+06 bytes, in 33.2007 seconds
7862.3 mean Bytes/connection
30.1198 fetches/sec, 236811 bytes/sec
msecs/connect:46.1447 mean, 1566.2 max, 36.343 min
msecs/first-response:69.1901 mean, 896.374 max, 36.743 min
HTTP Response Codes:
Code 200--212
Code 521--788
EXPLANATION Note:
First line: 1000 requests executed, maximum number of processes 5, total transfer data 7.8623e+06 bytes, run time 33.2007s
Second line: Average transmission data amount per connection 7.8623e+06/1000=7862.3
Third line: The response request per second is 30.1198, the data transmitted per second is 236811 bytes "Attention point: Number of response requests per second (corresponds to the number of users per second in QTP)"
Line four: The average response time of each connection is 46.1447msecs, the maximum response time is 1566.2msecs, the minimum response time is 36.343msecs "attention point: The average response time of each connection (corresponding to the QTP in response times, Per-Connection response user Time) "
Line sixth to seventh: Response status Code