Open the installation path of the Apache server (I use wampserver), there is a Ab.exe executable program in the bin directory, it is the stress test tool to be introduced.
Under the Windows System command line, go to the directory where the Ab.exe program is located and execute the Ab.exe program. Note the direct double-click does not work correctly.
D: (Enter/enter D-Drive)
CD Wamp\bin\apache\apache2.4.4\bin (Enter/Enter bin directory)
AB (carriage return/)
If you see some of the following help information, the successful start of AB
Start AB pressure test
Ab-n 5000-c http://localhost/test.php
The above example shows a total of 5,000 accesses to the http://localhost/test.php script, 200 concurrent (simulating 200 simultaneous accesses).
Introduction of the common parameters of AB:
-N: Total number of requests executed, default is 1;
-C: Concurrency number, default is 1;
-T: Total time to test, seconds, default 50000s
Data files when-p:post
-W: Output results in HTML table format
PHP uses the AB test site in Apache for stress performance