Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Testing Methodologies  ›  Lesson

Performance, Load and Stress Testing

Performance Testing 14 minPerformance testing measures speed and stability, load testing checks behaviour at the expected peak, and stress testing pushes beyond that peak to find the breaking point and see how the system recovers.

Performance, Load and Stress Testing

On a normal evening 800 people shop on Basketly at once. On the night before a festival, marketing expects 5,000. Checkout works perfectly for one tester clicking alone, but nobody knows what happens when thousands pay in the same minute. That is not a question functional tests can answer.

The rule

Performance measures speed; load tests the expected peak; stress goes past it.

Performance testing is the umbrella: measuring how fast and stable the system is. Useful measures:

  • Response time, usually as a percentile: "95% of checkouts finish within 2 seconds" (the p95). Averages hide the slow unlucky users.
  • Throughput: how many requests or orders per second the system handles.
  • Error rate: the share of requests that fail.

Load testing runs the system at the expected busiest level, 5,000 shoppers for Basketly, and checks it meets its targets there.

Stress testing pushes beyond the expected level until something gives, to learn two things: where the breaking point is, and how the system behaves when it breaks. A good failure shows a clear "we are busy" message and loses no orders; a bad one charges cards twice or needs a manual restart.

Related variants: a spike test jumps suddenly from 800 to 5,000 users, and a soak test holds normal load for many hours to expose slow problems such as memory leaks.

The shortcut

Ask "Which number of users am I testing, and why?" The expected peak means load. Beyond the peak on purpose means stress. Any level, measured, is performance.

Preparing checkout for the festivalStep 1 of 4
  1. Set targets

    p95 checkout under 2 seconds, error rate under 0.5%. Without targets there is no pass or fail.

The trap is testing with one user and calling it performance testing, or reporting only the average. An average of 1 second can hide one customer in ten waiting fifteen.

Drills

Answer fast — trust the rule.

quick drill

Basketly expects 5,000 shoppers. A test holds exactly that level for an hour. Which type?

quick drill

What is the main purpose of a stress test?

quick drill

Why report the p95 response time rather than only the average?

quick drill

A test runs normal load for 12 hours to spot a slowly growing memory use. What is it called?

Remember

  • Performance measures speed; load tests the expected peak; stress goes past it.
  • Ask "Which number of users, and why?"
  • Set targets first, report percentiles, and check how it fails, not just when.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainReady for the festival rush?

Basketly expects 5,000 shoppers at once on a festival evening, far more than its usual 800. Design a load test and a stress test for checkout, stating what you would measure and what would count as passing.