我有一个在线购物网站,我使用WordPress,WooCommerce和W3 Total Cache。
我做一个AB:
ab -l -r -n 600 -c 30 -k -H "Accept-Encoding: gzip, deflate"
我得到以下结果:
Server Software: LiteSpeed Server Hostname: ******************* Server Port: 80 Document Path: / Document Length: Variable Concurrency Level: 30 Time taken for tests: 31.311 seconds Complete requests: 600 Failed requests: 0 Keep-Alive requests: 0 Total transferred: 6349627 bytes HTML transferred: 6210786 bytes Requests per second: 19.16 [#/sec] (mean) Time per request: 1565.550 [ms] (mean) Time per request: 52.185 [ms] (mean, across all concurrent requests) Transfer rate: 198.04 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 167 389 272.8 346 3408 Processing: 234 1057 1371.0 442 12508 Waiting: 195 495 482.7 386 4968 Total: 405 1446 1394.5 851 12808 Percentage of the requests served within a certain time (ms) 50% 851 66% 992 75% 1664 80% 2421 90% 3442 95% 4078 98% 6122 99% 6766 100% 12808 (longest request)
这似乎没问题,但问题是, 一天20/30次我得到一个请求超时错误,有时我得到其他错误。 我联系主机,他们总是说没关系。 我很困惑。 我要问的是…我的testing有问题吗? 谢谢…