locust 써보기(fastapi+websocket+nginx)
먼저 설치pip install locust, websockets파일 작성(locustfile.py)나는 인증을 헤더로 하게 해놔서 헤더 추가함import timeimport jsonimport asynciofrom locust import User, task, betweenfrom locust.runners import STATE_STOPPING, STATE_STOPPED, STATE_CLEANUPfrom locust.exception import LocustErrorimport websocketsclass WebSocketClient: def __init__(self, url, headers): self.url = url self.headers = headers ..
Python
2024. 11. 7. 22:29
Blog is powered by
Tistory / Designed by
Tistory
Contact: j0n9m1n1@gmail.com
Contact: j0n9m1n1@gmail.com