方法:采用apache bench –ab软件进行测试
终端窗口输入:$sudo apt install apache2-utils 安装ab软件
$ab -h #获取帮助信息
$ab -c 1000 -n 10000 [此处输入测试网址]http://cnliutz.uicp.io/
测试结果:
Server Software: Apache/2.4.38
Server Hostname: cnliutz.uicp.io
Server Port: 80
Document Path: /
Document Length: 22518 bytes
Concurrency Level: 100
Time taken for tests: 81.352 seconds
Complete requests: 1000
Failed requests: 840
(Connect: 0, Receive: 0, Length: 840, Exceptions: 0)
Total transferred: 22772854 bytes
HTML transferred: 22519854 bytes
Requests per second: 12.29 #/sec
Time per request: 8135.193 ms
Time per request: 81.352 [ms] (mean, across all concurrent requests)
Transfer rate: 273.37 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 13 20 54.8 17 1018
Processing: 214 7833 1436.2 7981 11084
Waiting: 177 5719 1074.7 5976 9990
Total: 229 7854 1439.8 7998 11105
Percentage of the requests served within a certain time (ms)
50% 7998
66% 8275
75% 8987
80% 9000
90% 9302
95% 10116
98% 10140
99% 11095
100% 11105 (longest request)