# `tools/load/`

k6 load tests. Used by `/perf-audit` and the deployment orchestrator's smoke check.

| Script        | What it does                                                             |
| ------------- | ------------------------------------------------------------------------ |
| `baseline.js` | 5 VU smoke → 50 VU ramp; asserts dashboard p95 < 300ms + error rate < 1% |

## Run

```bash
k6 run tools/load/baseline.js
BASE_URL=https://staging.loma-portal.example k6 run tools/load/baseline.js
```

## Conventions

- One script per scenario; commit + version with the schema/API.
- Thresholds match `docs/performance-budgets.md` — keep them in lockstep.
- Setup phase logs in once; iterations reuse the token (don't hammer login).
