Linux Web performance stress testing tool http_load use tutorial

  • 2020-05-13 03:56:19
  • OfStack

http_load is introduced:
http_load is a performance measurement tool based on linux platform. Run in parallel reuse to test the throughput and load of the web server and the performance of the web pages.

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

Parameter description of http_load:
General parameter combination: -p, f; - r - s
-number of concurrent access processes p
- total number of visits to f
- access frequency per second for r
- total access time of s
urlstxt is the name of the url you want to visit. The parameter can be a single url or a file containing the url. The file format is 1 url per line. url should be more than 50. The testing effect is better.

http_load usage:
Create url.txt and add links:
//www.ofstack.com/category/php/
//www.ofstack.com/php/iterate-algorithm.html
//www.ofstack.com/tag/web-safe/
http://timestamp.ofstack.com/

Perform operations:
Using 5 processes, randomly access the url.txt url list for a total of 1000 visits
http_load -p 5 -f 1000 url.txt

Return results:
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:
Line 1:1000 requests executed, maximum number of processes 5, total data transmitted 7.8623e+06 bytes, running time 33.2007s
Line 2: average data transfer per connection 7.8623e+06/1000=7862.3
Line 3: response requests per second is 30.1198, and data transmitted per second is 236811 bytes [concern: number of response requests per second (corresponding to response users per second in QTP)]
Line 4: average response time per connection is 46.1447msecs, maximum response time is 1566.2msecs, minimum response time is 36.343msecs [concern: average response time per connection (corresponding to response time in QTP, user response time per connection)]
Line 6.7: response status code


Related articles: