Locust

Performs load testing with Locust, Python-based distributed testing, and real-time web UI.

ssrjkk Updated 2 repo stars

File contents

Locust

Distributed load testing framework in Python.

Quick Start

from locust import HttpUser, task, between
class WebsiteUser(HttpUser):
    wait_time = between(1, 3)
    @task(5)
    def browse(self): self.client.get("/products")
    @task(1)
    def checkout(self): self.client.post("/checkout", json={"item": "book"})
locust -f locustfile.py --web-host localhost

When to Use

  • API load testing; Performance regression; Capacity planning; Spike testing

Validation

  1. Locust UI shows metrics; 2. RPS displays correctly; 3. Test stops and reports

ssrjkk/claude-skills/tree/main/.claude/skills/qa/locust commit c93d20a21e

Frequently asked questions

npx skillmds@latest add ssrjkk/locust