Why is it important to change only one variable at a time between load test runs?
Last updated
It preserves causality: if you change several things and performance shifts, you can't tell which change (or their interaction) caused it.
A single documented change makes results reproducible. This applies to test-side variables (user count, ramp rate, think time) and system-side ones (pool sizes, JVM flags, cache config).
Structured experiment design can vary factors deliberately for broad sweeps. Ad-hoc multi-change tuning is what to avoid.
- https://docs.opensearch.org/latest/benchmark/performance-testing-best-practices/
- https://www.baseten.co/inference-engineering/book/04-software/performance-benchmarking-and-load-testing/
- https://www.browserstack.com/guide/load-vs-performance-testing
- https://amit-das.com/blog/load-test-driven-development/
- https://medium.com/codetodeploy/load-testing-coldfusion-applications-with-k6-and-gatling-baseline-before-you-optimize-14a5b06a818b