Upgrade to Pro — share decks privately, control downloads, hide ads and more …

APIサーバのレスポンス速度をふわっと把握したかった

ramo798
January 23, 2024

 APIサーバのレスポンス速度をふわっと把握したかった

若手・学生サーバーサイドエンジニアLT会
ラクーンホールディングス x ゆめみ のコラボLT会です!
https://yumemi.connpass.com/event/301942/

ramo798

January 23, 2024
Tweet

Other Decks in Programming

Transcript

  1. Locustの使い方 from locust import HttpUser, task, between class ApiUser(HttpUser): wait_time

    = between(1, 5) def on_start(self): self.client.post("/accounts/sign_in", { "account[email]": "email", "account[password]": "password" }) @task def load_test_api_endpoint(self): self.client.get("/endpoint")