AB is the performance Test tool for Apache Hypertext Transfer Protocol (HTTP). Its design intent is to depict the execution performance of the currently installed Apache, primarily to show how many requests per second Apache you have installed.
#ab-V can see its basic information
#ab-N1000-C10 http://localhost:81/t.php
This is a basic command
-n1000 indicates that the total number of requests is 1000
-only 0 indicates the number of concurrent users is 10
Parameter description:
Concurrency level: number of concurrent users;
Time taken for tests: the total duration of the request processing;
Complete requests: total number of requests;
Failed requests: number of failed requests;
Total transferred:: Sum of all request response data lengths;
HTML transferred: The sum of the body data in all request response data;
Requests per second: a data that we are concerned about, some call "throughput rate", requests per second=complete Requests/time taken for tests
Time per request: Average request latency;
Transfer Rate: The length of data that these requests get from the server at the unit time.
Under the Apache server, use the AB command for stress testing