What is performance testing?
Answer
Performance testing evaluates how a system behaves under expected and unexpected load conditions — measuring speed, scalability, and stability. Types: Load testing: testing behavior under expected normal load (e.g., 1,000 concurrent users). Stress testing: testing beyond normal capacity to find the breaking point — what happens under extreme load? Spike testing: sudden large increase in load (e.g., Black Friday traffic surge). Endurance/Soak testing: testing under normal load for an extended period to find memory leaks or resource exhaustion. Volume testing: testing with large amounts of data. Scalability testing: how the system scales with increasing resources. Key metrics: response time (p50, p95, p99 percentiles), throughput (requests per second), error rate, resource utilization (CPU, memory, I/O). Tools: k6, JMeter, Gatling, Locust, Artillery. Performance testing should be part of CI/CD, not an afterthought.