Load testing with Python and Locust
summary
Locust is a pure‑Python, MIT‑licensed load tester that stores scenarios as code, runs master/worker clusters and scales by spawning one worker per CPU core; expect 1.3M downloads/month and practical throughput of about >1,000 req/s per core with regular HTTP and ~4-5k req/s with the fast HTTP client. It adds features like Postgres + Grafana dashboards via Locust plugins, distributed runs with locust‑swarm over SSH, conversion from browser recordings with hard‑to‑locust, and protocol extensions for WebSockets/MQTT; constant pacing, catch_response, weighted tasks and on_start hooks are supported.
AI-written summary · about
