A load test checks that a website or app handles the traffic you expect: the number of users of a normal busy day, a campaign or a launch. A stress test goes past that number on purpose, to find the point where the site stops coping and to see how it fails when it does.

Both send simulated users to the site and measure how it responds. The difference is the question they answer: a load test asks “do we hold the traffic we expect?”, a stress test asks “where is the limit, and what happens there?”

The difference at a glance

Load test Stress test
Question Does the site hold the expected traffic? Where does it break, and how?
Number of users Up to the expected peak Beyond it, until the site fails
A good result The target holds with acceptable page loads You know the breaking point, and the site fails slowly and recovers
When Before every campaign, launch or release Before a big peak, or when you don’t know the limit at all
What you learn Whether you are ready How much room you have, and the first thing that gives way

Load testing: are we ready for the traffic we expect?

A load test needs a target: the number of users who will be on the site at the same time at the peak. If a campaign brings 3,000 visitors in an hour and a visit lasts about four minutes, about 200 people are on the site at once. That is the target. How to load test a website goes through how to pick the number.

The test passes when the site holds the target with page loads you accept, for example an average under 3 seconds. Run it before every campaign, sale or launch, and after a software update that touches the pages people use most. The same test before and after a change shows whether the change helped.

Stress testing: where is the limit?

A stress test keeps adding users past the expected peak until something gives way: pages slow down past the limit, errors appear, or the site stops answering. It answers three things a load test doesn’t:

  • The breaking point. If the target is 200 and the site breaks at 260, you have 30% headroom. If it breaks at 210, a slightly better campaign takes it down.
  • What breaks first. Usually a database query, a connection pool, a third-party script or an external service such as payment or search, not the whole server at once.
  • How it fails. A site that slows down gradually and recovers when the traffic drops is safer than one that starts returning errors or stays broken after the peak.

Run a stress test when the peak matters a lot, such as Black Friday or a ticket release, or when you have never measured the limit at all.

Spike, soak and capacity tests

These are variations of the same idea:

  • Spike test. Many users arrive at once instead of gradually: a ticket sale opens, a newsletter goes out, a TV ad runs. A site that handles 300 users added over ten minutes may fail when 300 arrive in the same minute.
  • Soak test, or endurance test. A normal load held for hours. It finds problems that build up over time: memory that is never freed, connections that leak, logs that fill a disk.
  • Capacity test. A test that finds the most users the current setup can take within the limits you set, such as an average page load under 3 seconds: a number to plan with, before you decide whether to add hardware or fix the code.

Real browsers or HTTP requests?

Both kinds of test can be run with a request-level tool such as JMeter, which sends the HTTP requests you script, or with real browsers that load each page as a customer’s browser does. A request-level test measures the server. A real-browser test also finds problems that only show in the browser under load: a page that answers 200 OK but stays blank because its JavaScript failed, or a script that stalls the page when the server is busy. Real browsers compared with HTTP scripts.

How to run each with Supervisor

Supervisor tests with real browsers.

  • Load test: start an automatic test with your expected peak as the target. It starts with 4 users and adds users every 10 seconds. It passes when the target holds, and stops early if the average page load passes your limit (3 seconds by default) or 20% or more of the browsers fail.
  • Stress test: set the target well above the expected peak. The test stops where the site gives way, so the number of users it handled is your breaking point, and the report shows the slowest pages and requests at that point.
  • Spike test: in a controlled test you add users step by step yourself, so you decide how big each step is and when it comes, and you watch the live browsers while it runs.
  • Soak test: a controlled test can run for up to 2 hours. For a longer soak, ask about a managed test.
  • After every change: run the same test again and compare. A scheduled test compares each run with the median of the previous five and emails you when the site got slower.

The first test with 4 users is free. After that a test costs 1 credit per 10 users. Your AI agent can also run the tests, read your server’s logs and fix what limits the site through Supervisor Autotune, and our performance engineer can run them for you as a managed load test.

Frequently asked questions

Is a stress test a type of load test?

Yes, in the wide sense: performance testing covers load, stress, spike and soak tests, and all of them put load on the system. In everyday use “load test” means testing at the expected load, and “stress test” means going beyond it.

Which should I run first?

A stress test, when you don’t know the limit yet: set the target well above the expected peak, and the test stops where the site gives way. That one run shows both whether you hold the expected peak and how much room you have. After that, a load test at the expected peak plus some headroom, after every change, shows the site still holds it.

Can a stress test damage my site?

It can make the site slow or unavailable while it runs, which is the point. Run it against a staging copy, or at a quiet time with the team ready, and tell your hosting provider beforehand if they might mistake the traffic for an attack. Supervisor’s test traffic carries an X-Supervisor-Run header so you can tell it apart in your logs.

How many users should a stress test go up to?

Start at about twice the expected peak. If the site holds that, go higher: the aim is to find the limit, not to pass.

This article is part of the load testing guide, which also covers volume testing, p95 latency and Apdex.