AB is the Apache Hypertext Transfer Protocol (HTTP) performance testing tool. The intent is to depict the execution performance of the currently installed Apache, primarily to show how many requests can be processed per second by your Apache installation.
#ab-V to see its basic information
#ab-N1000-C10 http://localhost:81/t.php
This is a basic command.
-n1000 represents a total request of 1000
-only 0 represents a concurrent user number of 10
Parameter description:
Concurrency level: number of concurrent users;
Times taken for tests: total time spent requesting processing;
Complete requests: total number of requests;
Failed requests: number of failed requests;
Total transferred:: Sum of all request response data lengths;
HTML transferred: Total body data in all request response data;
Requests per second: is a data that we are very concerned about, some people call "throughput", Requests/Second=complete Requests/time taken for tests
Time per request: Average requests waiting times;
Transfer Rate: The length of data that these requests get from the server in unit time.
# ab-c L-n 10000 http://127.0.0.1/index.html