Load testing

This folder contains lightweight load test scaffolding to validate API performance regressions.

  1. Install k6 (macOS):
brew install k6
  1. 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_URL and the API prefix is /api/v1.
  • For authenticated endpoints, extend the script to login first and replay the cookie.