之前就听过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 模式  不能设置执行时间

 

相关文章:

  • 2021-11-30
  • 2021-10-14
  • 2021-11-18
  • 2020-11-13
  • 2021-12-14
  • 2021-06-30
  • 2021-08-19
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2021-08-16
  • 2022-12-23
  • 2021-08-20
  • 2021-07-10
相关资源
相似解决方案