Which checks can detect a meaningful slowdown inside a short CI budget?
A slow API and a slow first screen require different measurements. k6 and Locust can apply a repeatable service workload. Lighthouse CI collects browser audit results. Pick one customer action, a baseline revision and a threshold meaningful enough to investigate.
Choose a workload with a known delay
Use a staging endpoint that serves a fixed catalogue from a known dataset. Compare the base revision with a deliberately slower test build, then repeat in the opposite order. Pin the environment and record sample counts, warm-up and queue time alongside the observed latency.
| Tool | What it measures here | Check before enforcing it |
|---|---|---|
| Grafana k6 | Thresholds on metrics from a scripted load test. | Confirm the result changes when the known delay is introduced. |
| Locust | A user workload described in Python. | Inspect how the task mix, wait times and number of users affect the request count. |
| Lighthouse CI | Browser audit results for selected pages. | Repeat a build on the same runner and compare normal variability with the slowdown. |
Keep the gate small enough for a pull request
Suppose the team allows four minutes for the check. Reserve time for setup and output before choosing load duration. If there are too few observations to assess a tail percentile, report the gap and schedule a longer run. Ask reviewers which regression would justify holding the merge.