AB test for Apache
Operation:
Windows + R cmd enters command line mode to find Ab.exe under Apache;
And then, in the Bin directory, proceed through the line
ab-n1000-c100 http://www.test.com/test.php
Returns the following results:
Server software:apache/2.0.54
Platform Apache version 2.0.54
Server hostname:127.0.0.1
Server Host Name
Server port:80
Server port
Document Path:/index.html.zh-cn.gb2312
Test the page document
Document length:1018 bytes
Document size
Concurrency level:1000
Concurrency number
Time taken for tests:8.188731 seconds
Duration of the entire test
Complete requests:1000
Number of requests completed
Failed requests:0
Number of failed requests
Write errors:0
Total transferred:1361581 bytes
Network traffic in the entire scene
HTML transferred:1055666 bytes
The amount of HTML content transferred throughout the scene
Requests per second:122.12 [#/sec] (mean)
One of the most concerned indicators, equivalent to the number of transactions per second in LR, followed by mean in parentheses indicates that this is an average
Time per request:8188.731 [MS] (mean)
Two of the most concerned indicators, equivalent to the average transaction response time in LR, followed by mean in parentheses indicates that this is an average
Time per request:8.189 [MS] (mean, across all concurrent requests)
Average of actual run time per request
Transfer rate:162.30 [Kbytes/sec] Received
Average traffic on the network per second can help eliminate the problem of extended response times due to excessive network traffic
Connection Times (MS)
Min MEAN[+/-SD] Median max
Connect:4 646 1078.7 89 3291
processing:165 992 493.1 938 4712
waiting:118 934 480.6 882 4554
total:813 1638 1338.9 1093 7785
The decomposition of time consumed on the network, the specific algorithm of each data is not very clear
Percentage of the requests served within a certain time (MS)
50% 1093
66% 1247
75% 1373
80% 1493
90% 4061
95% 4398
98% 5608
99% 7368
100% 7785 (Longest request)
The response of all requests in the entire scene. Each request in the scene has a response time, where 50% of the user's response time is less than 1093 milliseconds, 60% of the user response time is less than 1247 milliseconds, and the maximum response time is less than 7785 milliseconds
Due to concurrent requests, the CPU is not actually processed at the same time, but instead is rotated on a per-request basis, so basically the first time of the request is approximately equal to the second time per request multiplied by the number of concurrent requests.
AB test for Apache