# Performance testing tools for pull requests

> Compare k6, Locust and Lighthouse CI for a short pull-request performance check. Control the workload and agree on the evidence that justifies a failure.

Source: https://cueapril.com/buying-guides/performance-testing-for-pull-requests
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## 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.

Compare k6, Locust and Lighthouse CI for a short pull-request performance check. Control the workload and agree on the evidence that justifies a failure.

Cue April editorial assessment. The sources identify documented capabilities. Suggested pilot checks are evaluation criteria.

## 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.

Performance testing tools for short PR feedback cycles

| 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.

## Primary documentation

- [Grafana k6 thresholds](https://grafana.com/docs/k6/latest/using-k6/thresholds/)
- [Locust test scripts](https://docs.locust.io/en/stable/writing-a-locustfile.html)
- [Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci)

By Cue April. Updated 2026-12-01.

## Related

- [Buying guides](https://cueapril.com/buying-guides): Choose a shortlist for browser, API, mobile or enterprise QA. Give vendors the same workload and compare evidence, support and maintenance needs.
- [Regression testing](https://cueapril.com/guides/regression-testing): What regression testing means, with examples, and how to automate it with scheduled runs, watched branches and approved checks across test methods.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
