locust
Installation
SKILL.md
Locust
Locust is an easy-to-use, scriptable, and scalable performance testing tool. You define the behavior of your users in regular Python code.
When to Use
- Python-Based Load & Performance Testing: Authoring complex, dynamic load test scenarios using standard Python code.
- Distributed Master/Worker Scaling: Scaling load generation across dozens of distributed worker machines easily.
- Real-Time Web Dashboard Monitoring: Inspecting request per second, response latency charts, and failures live in the Locust browser UI.
- Custom Protocol Testing: Load testing gRPC, WebSockets, or proprietary TCP protocols alongside standard HTTP.
Quick Start
from locust import HttpUser, task, between
class WebsiteUser(HttpUser):
wait_time = between(1, 5)