who_care

导航

 

之前就听过Locust是基于python的一款很好用的开源性能测试框架,一直没机会实践,正好这次项目上有个接口压测的小任务,就拿来练练手

 

安装:py -3 -m pip install locustio 

 

no_web 模式执行: 可以设置执行时间

locust  --no-web  --csv=example  -f  test.py  -c 9 -r 1 -t 12h

 

web 模式  不能设置执行时间

 

posted on 2018-12-07 18:24  who_care  阅读(116)  评论(0编辑  收藏  举报