locust load test
2015-12-20 22:02
519 查看
from
locust import
HttpLocust, TaskSet, task
locust import
HttpLocust, TaskSet, task
"""
http://docs.locust.io/en/latest/
locust -f ./demolocust.py --host=http://docs.locust.io """ class UserBehavior(TaskSet): def on_start(self): """ on_start is called when a Locust start before any task is scheduled """ self.index() def index(self): self.client.get("/") @task(2) def quickstart(self): self.client.get("/en/latest/quickstart.html") @task(1) def api(self): self.client.get("/en/latest/api.html") class WebsiteUser(HttpLocust): task_set = UserBehavior min_wait=5000 max_wait=9000
相关文章推荐
- Path---1
- BeanFactory和ApplicationContext有什么区别?
- chapter23:软件安装RPM,SRPM与YUM之(1)-RPM软件管理程序:rpm
- 软件工程实践总结
- 初识工作流
- LeetCode - 14. Longest Common Prefix
- 我的软工实践总结
- 软件工程实践总结
- SpringMVC的配置详解
- rootfs增加密码登录和telnet登录
- Java基础知识
- 模拟计算器进行四则运算(同等优先级)(第2届第3题)
- kettle从hive取数乱码-问题解决方法(可下载改写驱动)
- redis(Remote Dictionary Server)
- delphi如何获得当前操作系统语言环境
- JAVA入门第三季
- C++学习笔记-容器
- Linux环境下python的tab键补全
- 第五次试验
- 第四次试验