ab interfaces stress testing tool

ab use

Analog concurrent requests 100 times, a total of 10,000 times request
command template:
ab -c -n 10 000 100 to be tested website (recommended full path)
Content explanation:
Server Software: nginx / 1.10.2 (server software name and version information)
Server Hostname: 192.168.1.106 (hostname of the server)
server port: 80 (server port)
the document path: /index1.html (URL path for the test).
the document the Length: 3721 bytes (for testing the URL returned document size)
Concurrency Level: 1000 (concurrent)
time taken for tests: 2.327 seconds the (total time consumed by stress tests)
Complete requests: 5000 (total number)
the failed requests: 688 (the number of failed requests)
the write errors: 0 (write errors network connection)
total transferred: 17402975 bytes (total data transfer volume)
HTML transferred: 16,275,725 bytes (total data amount of an HTML document)
requests per sECOND: 2148.98 [# / sec] (mean) (average number of requests per second) that is very important parameter values, the server throughput
Time per request: 465.338 [ms] (mean) ( all concurrent users (here, 1000) are the average time to time)
Time Request: 0.247 [MS] (Mean, across All Concurrent Requests) (single user the average time to time )
transfer rate: data length (transmission rate, the obtained units 7304.41 [Kbytes / sec] received per second: KB / S)
...
Percentage of Requests the served WITHIN (MS) a Certain Time
50 ## 50% 347% of request is returned within 347ms
66% 60% ## 401 requests returned within 401ms
75% 431
80% 516
90% 600
95% 846
98% 1571
99% 1593
100% 1619 (longest request)

Guess you like

Origin www.cnblogs.com/h-gallop/p/11646009.html