본문 바로가기 메뉴 바로가기

Programming Kindergarten

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Programming Kindergarten

검색하기 폼
  • j0n9m1n1 (409)
    • OS (14)
      • Windows (1)
      • Linux (3)
      • Home Assistant (6)
    • C, C++ (25)
      • 데이터구조 & 자료구조 (13)
      • Baekjoon Online Judge (195)
      • 정올 (15)
      • Project Euler (2)
      • openCV (2)
      • MFC (0)
    • Java (16)
      • for Class, Project (16)
    • Android (2)
      • for Class, Project (2)
    • Python (15)
      • Django (1)
      • Note (10)
      • PyQt5 (3)
    • Trip (1)
      • OSAKA & KYOTO (1)
    • Others (64)
      • Computer (9)
      • Review (47)
    • Cook (19)
      • 더 푸드 랩(The Food Lab) (14)
      • 만개의레시피 (4)
      • 유튜브 (0)
  • 방명록

티스토리챌린지 (1)
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

티스토리 방명록

이전 1 다음
Previous Next
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory
Contact: j0n9m1n1@gmail.com

티스토리툴바