web压力测试

This commit is contained in:
guobao.jiang 2016-02-05 09:51:53 +08:00
parent 867dd61b57
commit 9538d7e084
1 changed files with 13 additions and 0 deletions

13
shell/web.sh Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# web压力测试
# webbench
# webbench -c 并发数 -t 运行测试时间 URL
webbench -c 5000 -t 120 http://localhost:4000/
# siege
# 安装 brew install siege
# siege -c 并发数 -t 运行测试时间 URL
siege -c 1000 -t 5s http://localhost:4000/