Load testing
This folder contains lightweight load test scaffolding to validate API performance regressions.
k6 (recommended)
- Install k6 (macOS):
brew install k6
- Run the smoke test against a running stack:
BASE_URL=http://localhost:8000 k6 run loadtest/k6/api-smoke.js
Notes
- The scripts assume the FastAPI backend is reachable at
BASE_URLand the API prefix is/api/v1. - For authenticated endpoints, extend the script to login first and replay the cookie.