What is the observer effect in performance testing, and how do you minimize it?
Last updated
The observer effect means measuring changes the result: heavy APM tracing, verbose logging, or a saturated load generator distort performance numbers.
Minimize it by running load generators on separate machines (and monitoring them), and by using low-overhead sampling instead of full tracing at peak.
Keep monitoring config identical across runs and quantify overhead by testing with and without it.
- https://en.wikipedia.org/wiki/Observer_effect_(information_technology)
- https://istqb-glossary.page/probe-effect/
- https://perfluencer.pl/the-observer-effect-in-observability/
- https://medium.com/@thecodingdon/the-heisenbug-a-bug-that-only-exists-when-you-dont-look-at-it-4302b664b187
- https://gatling.io/blog/shift-right-testing
- https://medium.com/@gwrx2005/hftperformance-an-open-source-framework-for-high-frequency-trading-system-benchmarking-and-803031fe7157
- https://docs.pingidentity.com/solution-guides/best_practice_guides/bp_pf_performance_testing.html