# Load Testing

> Benchmark APIs with locust ramp up concurrency and breakpoints

- Skill: `loopyluci/load-testing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add loopyluci/load-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/loopyluci/load-testing/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: LoopyLuci (https://skillmd.com/u/loopyluci)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/loopyluci/load-testing

---


# Load Testing

## Locust
```python
# locustfile.py
from locust import HttpUser, task

class MyUser(HttpUser):
    @task
    def index(self):
        self.client.get("/")
```

## Run
```bash
pip install locust
locust -f locustfile.py --host=http://localhost:8000
# Open http://localhost:8089
```

## Key Metrics
- RPS (requests per second)
- P50/P95/P99 latency
- Error rate
- Concurrent users

