ab -c 1000 -n 7000
http://api.test.com/testpage模拟1000个并发, 7000个请求的结果如下, 但是并发量怎么算的呢?
Benchmarking api.test.com(be patient)
Completed 700 requests
Completed 1400 requests
Completed 2100 requests
Completed 2800 requests
Completed 3500 requests
Completed 4200 requests
Completed 4900 requests
Completed 5600 requests
Completed 6300 requests
Completed 7000 requests
Finished 7000 requests
Server Software: nginx
Server Hostname:
api.test.comServer Port: 80
Document Path: /testpage
Document Length: 32132 bytes
Concurrency Level: 1000
Time taken for tests: 55.834 seconds
Complete requests: 7000
Failed requests: 5521
(Connect: 0, Receive: 0, Length: 5521, Exceptions: 0)
Write errors: 0
Non-2xx responses: 5521
Total transferred: 49585547 bytes
HTML transferred: 48549014 bytes
Requests per second: 125.37 [#/sec] (mean)
Time per request: 7976.292 [ms] (mean)
Time per request: 7.976 [ms] (mean, across all concurrent requests)
Transfer rate: 867.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 2 707 2338.4 76 25211
Processing: 4 1600 3426.4 95 36119
Waiting: 3 1510 3237.2 69 30258
Total: 10 2307 4157.0 187 37218
Percentage of the requests served within a certain time (ms)
50% 187
66% 1156
75% 3166
80% 3601
90% 7677
95% 10719
98% 15419
99% 21056
100% 37218 (longest request)