Skip to content

locust 压测

官网

locust

示例

python
from locust import HttpUser, task


class Demo(HttpUser):
    @task
    def demo(self):
        self.client.get("/")

运行

bash
locust -f locustfile.py

打开 http://localhost:8089/ 即可开始使用

最后更新于: