Forget which version to start with. apache comes with the stress testing tool AB (ApacheBench), which is an independent exe file. It is easy to use, just add parameters, regardless of windows or linux.
There are many parameters for AB. In windows, enter AB in the command line and press enter to view the parameters. In linux, you have never tried AB-help.
Tiandi built a website of tiandiyoyo. me locally and used it for a test.
The parameter n here indicates the number of requests executed, and the value c indicates the number of concurrent requests, that is, the test of 200 accesses to tiandiyoyo. me is executed, and the unit is 100. According to the test result shown in the preceding figure, no error request is returned, indicating that the website can meet 100 accesses with 200 concurrent requests. The data in the red circle is more informative, indicating the number of requests that can be executed per second and the time required for each request, both of which are average values. Finally, adjust the values and then perform the test until an error occurs. The maximum stress that the website can withstand is obtained.
PS: it should be noted that the test value is also related to the page complexity of the test.