1 webbench
使用方法:
webbench -c 100 -t 60 "http://192.168.8.42/scode/codes.php"
100个并发请求,持续60秒
结果:
Benchmarking: GET http://192.168.8.42/scode/codes.php
100 clients, running 60 sec.
Speed=5426 pages/min, 177921 bytes/sec.
Requests: 5426 susceed, 0 failed.
成功数、失败数 及 速度
2 wrk
使用方法:wrk -t8 -c100 -r50000 "http://192.168.8.42/scode/codes.php"
开启8个进程,100个链接,共50000个请求
结果:
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.06s 838.34ms 27.05s 93.61%
Req/Sec 0.00 0.00 0.00 100.00%
50000 requests in 9.09m, 92.03MB read
Socket errors: connect 0, read 0, write 0, timeout 1301
Requests/sec: 91.72
Transfer/sec: 172.86KB
这个数据看似更专业一点