Friday, October 6, 2023

Load testing with locust

 pip install locust

create file locustfile.py

start with locust

open web using : 

http://localhost:8089/


Sample user file:

from locust import HttpUser, task

class LoadUser(HttpUser):
@task
def load(self):
self.client.get("/sleep_30/")

No comments:

Post a Comment