API latency learning path Level 1 This level · 2 of 2
Easy java backend

Rerun the same load test against the baseline

The 30 second answer

After the changes, I rerun exactly the same load test, with the same data, request rate and environment, and compare p50, p95, p99, error rate and throughput with the baseline. Only that comparison proves the improvement. If I changed the test, the numbers would not be comparable, so the test setup is treated as part of the experiment.

Could you say this in an interview?

Use the same script, the same data and the same environment, then compare p50, p95, p99 and throughput. k6 thresholds can fail a CI run on regression.

# same script, same data, same rate, same environment
k6 run --vus 50 --duration 5m checkout.js
# compare p50/p95/p99, errors, and throughput to the recorded baseline
Sources (1)
  1. k6 thresholdsgrafana.com
Previous
Next