-n 参数设了 1000, 但实际只请求了 300 多个, 是我哪里弄错了吗?
所使用的命令:
ab -n 1000 -c 100 -t 30 -p "/playground/1" -T "multipart/form-data; boundary=96180d74-ac90-4fcf-9383-9ea9d147d94b" -H "Authorization: Bearer xxx" "http://xxxx.com"
压测结果:
Benchmarking xxx.com (be patient)
Finished 319 requests
Server Software:
Server Hostname: xxx.com
Server Port: 80
Document Path:
Document Length: 255 bytes
Concurrency Level: 100
Time taken for tests: 30.034 seconds
Complete requests: 319
Failed requests: 14
(Connect: 0, Receive: 0, Length: 14, Exceptions: 0)
Non-2xx responses: 14
Total transferred: 167841 bytes
Total body sent: 27554560
HTML transferred: 77775 bytes
Requests per second: 10.62 [#/sec] (mean)
Time per request: 9414.936 [ms] (mean)
Time per request: 94.149 [ms] (mean, across all concurrent requests)
Transfer rate: 5.46 [Kbytes/sec] received
895.95 kb/s sent
901.41 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 7 9 1.0 8 12
Processing: 477 7536 3093.2 7573 17061
Waiting: 475 7536 3093.2 7573 17061
Total: 486 7545 3093.2 7581 17070
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 7578
66% 8615
75% 9234
80% 9752
90% 11527
95% 12358
98% 15382
99% 15992
100% 17070 (longest request)
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.