Pre-condition: gcc
Download: http://acme.com/software/http_load/
Installation:
CD Http_load_home make make and install
command:./http_load
-P: Meaning is the number of concurrent user processes.
-F: Meaning total number of accesses
-R: meaning the frequency of visits per second
-S: Meaning Total access time
Add a test List
Vim urls.txt# Enter the address of your test, you can edit the address of your test environment in http://www.xxx.orghttp://www.xxx.org/url1http://www.xxx.org/url2http:// www.xxx.org/url3# when you are done testing the local, you may want to test the simulation environment, replace your domain name for the emulated domain name #vim Open the file, named:%s/www.xxx.org/www1.xxx.com, Replace the www.xxx.org with the www1.xxx.com
Start Testing
for example:./http_load-p 200-s 300
Meaning: 200 concurrent pressure measurement 300 seconds
Wait 300 seconds to make a result
For example:./http_load-p- R -S
meaning: 200 concurrent per second access frequency of 30 pressure measurement 300 seconds
wait 300 seconds to make a result
result Description (excerpt from online):
1. Fetches, 1 max parallel, 2.04472e+06 bytes, in 10.0005 seconds explained that 49 requests were run in the above test, The maximum number of concurrent processes is 2.389, the total data transferred is 204463bytes, and the elapsed time is 10.0148 seconds
2. 41729 mean bytes/connection shows the average amount of data transmitted per connection 41729/49=581.6
3. 4.89977 fetches/sec, 204463 bytes/sec
Indicates that the response request per second is 4.89977, and the data passed per second is 204463 bytes/sec
4. msecs/connect:1.70367 mean, 2.389 max, 1.322 min indicates that the average response time per connection is 1.70367 msecs
, maximum response time 2.389 msecs, minimum response time 1.322 msecs
5. msecs/first-response:65.0539 mean, 108.677 max, 56.335 min
6, HTTP response Codes:code 200-49 explains the type of open response page, if the type of 403 is too many, it may
Be aware that the system is experiencing bottlenecks.
Special Instructions:
The main indicators in the test results are fetches/sec, Msecs/connect, which is the number of queries that the server can respond to per second.
Use this indicator to measure performance. Seems to be a bit higher than Apache's AB accuracy and more persuasive.
Reference:http://www.51testing.com/html/71/410671-834198.html
Test your project with Http_load simple stress