qinguoyi / TinyWebServer

:fire: Linux下C++轻量级WebServer服务器
Apache License 2.0
16.53k stars 3.9k forks source link

关于压力测试 #231

Open evvvvince opened 1 year ago

evvvvince commented 1 year ago

我用apachebench压测发现返回码都是404,但是自己用浏览器访问都是200,为什么会这样呢,压测命令为 ab -t 5 -c 10500 url

qinguoyi commented 1 year ago

404一般是url不存在,可以看下是不是地址有问题

evvvvince commented 1 year ago

404一般是url不存在,可以看下是不是地址有问题

刚测试了一下网址是没有问题的呀,apachebench截图如下,请求是成功的,但是状态码是404

截屏2023-06-07 15 42 33
evvvvince commented 1 year ago

ab -c 10000 -t 5 http://127.0.0.1:9006/ 测试命令是这个

xiaolidw23456 commented 6 months ago

http://101.132.73.100:18080 How much is this QPT Welcome everyone to stress testing