What is the difference between load testing and stress testing?
Answer
A load test asks whether the system meets its performance objectives under an anticipated realistic workload. A stress test deliberately approaches or exceeds expected limits, or reduces available resources, to discover the failure threshold, degradation behavior and recovery characteristics. The workload and the success question are therefore different even when the same transaction scripts are reused.
Strong answer includes
- expected workload versus limit or beyond-limit workload
- SLO validation versus failure-threshold and recovery discovery
- does not define stress testing as merely a bigger load test without a failure objective
Practical example
Run checkout at the forecast peak to verify p95 and error-rate goals: load test. Then keep increasing the arrival rate until queues grow, errors rise or the service saturates, and verify that it recovers after pressure is removed: stress test.