Performance tests

The difference between load, stress, spike, and soak tests

“We need a load test.” This sounds unambiguous, but it is not. Load testing includes several types of tests, and each answers a different question. If the team chooses the wrong type, it may confirm normal traffic while overlooking the risk of a sudden or prolonged load.

The difference between them is practical: one test verifies expected traffic, another the system’s limit, a sudden surge, or long-term stability.

Common problem: the test answers a different question than the one you have

A short test under normal traffic does not confirm how the system behaves during a sudden surge or after several hours under load. Define the risk first and choose the type of test second. Otherwise, you may receive a correct measurement that does not help with the decision before a campaign or release.

Four questions, four tests

Load: can we handle what we expect? We apply a load that reflects normal or expected traffic and monitor whether response times and the error rate remain within the agreed limits. It answers whether the system meets expectations under the planned load. A repeated test can also highlight performance degradation after a change.

Stress: how do we handle higher load? We increase load above the expected level and check the agreed thresholds. We observe the point at which response times or the error rate rise sharply and what is exhausted first, such as database connections, memory, threads, or CPU. If we keep increasing load to find the limit, k6 calls this a breakpoint test. The distinction is explained below.

Spike: can we handle a sudden surge? Sending a newsletter may produce a sudden increase in traffic. A spike test does not simulate a gradual increase but a jump. It verifies both the surge itself and whether the system returns to its normal state afterwards.

Soak: can we sustain it? We maintain an even load for several hours. This can reveal slow memory leaks, unclosed connections, or growing logs. These are problems that a short test may not show.

How we approach it

We design scenarios around how your customers behave. Instead of repeatedly loading one simple page, we model a real journey: finding a product, adding it to the cart, signing in, or paying. The aim is to load the parts of the system used by that journey in real traffic.

We write scripts in k6 or, depending on the environment, Locust. We use JMeter for older non-HTTP protocols or when you already have an existing suite. We monitor response times, the error rate, and throughput during the test. If application, database, and infrastructure metrics are also available, we compare them on a shared timeline.

The tests we run depend on the stated risk. A spike or stress test may be important before a campaign, a comparative load test after an infrastructure change, and a soak test for a prolonged load. In practice, several types are often combined, but the scope should match the goal and the available time.

Agree on a profile as well as a test name

Terminology varies between teams. Grafana k6 distinguishes stress from breakpoint testing: stress tests check above-average load, while breakpoint tests gradually seek a capacity limit. If you intend to increase load until thresholds are exceeded, state that explicitly. A request for a stress test alone may not establish that goal.

Describe intensity, ramp-up time, the main phase and recovery after load. The following numbers are our illustrative model for a system expecting 100 HTTP requests per second, rather than recommended minimums or measured capacity:

Type Illustrative profile What to assess
Load Gradual ramp-up to 100 requests/s and 30 minutes at steady load Agreed thresholds during the main phase
Stress Gradual ramp-up to 200 requests/s and 30 minutes at that level Behaviour and stability at a higher load
Spike A rise from 100 to 500 requests/s over 30 seconds, a brief peak and return The sudden increase and subsequent recovery
Soak 100 requests/s for six hours after ramp-up Changes in response times and resource use over time

Requests per second are not a user count. A user journey can contain multiple calls and pauses. Before testing, define whether you control concurrent virtual users, started operations or requests, and verify the load actually generated.

Verify the baseline before increasing load

Start with a small smoke run. Check sign-in, data preparation and correct operation results. Measure expected traffic before moving to a more demanding profile. Broken accounts or rejected requests could otherwise produce a fast report without exercising the intended journey.

Use controlled accounts and test mode for orders and payments. Agree on external-service scope, environment limits, stop conditions and the person authorised to end the test. A production plan must also account for ordinary visitors. The same load figure on a smaller staging environment does not establish the same production capacity.

Assess thresholds by phase and operation

Define acceptable response times, error rates and correct outcomes for important operations beforehand. An illustrative threshold might be p95 below two seconds and an error rate below one percent, but each team must choose limits for its product. HTTP 200 alone does not confirm a correct order.

Separate ramp-up, the main phase, the peak and recovery. A whole-run percentile can hide a brief problem, while fast searches can obscure slow ordering in an aggregated report. See load-test metrics for a closer look at the indicators.

Monitor the load generator too. In k6, dropped iterations are scheduled iterations that did not start. Configuration or increasingly long operations may cause them. Diagnose the result and compare planned with actual load, rather than automatically concluding that the entire target profile was verified.

Each profile needs different diagnosis

For a stress test, compare higher load with the earlier normal level. If responses slow, check related queues and exhausted resources. Do not promise a universal capacity figure without the scenario and measurement conditions.

For a spike test, also track autoscaling response time and processing of accumulated work. After traffic drops, check response-time recovery, queues and operation results. A process must not silently lose a request or create a duplicate merely because immediate responses have improved.

For a soak test, compare successive time intervals. Track memory, connections, disk and any scheduled jobs during the long run. Memory growth warrants investigation but does not prove a leak by itself. Choose duration according to risk and operating cycles. The model’s six hours do not establish behaviour after a full day or during an untested month-end close.

Follow up on the result

The report should contain the profile, scenarios and data, system version, environment, achieved load and threshold comparison. Distinguish observations from causes that still need confirmation. If a generator limit or safety condition ends the test, record what was verified and what remains open.

After a fix, repeat the relevant profile under comparable conditions and check recovery too. Every change need not trigger all four types. Choose the next test according to the defect, change risk and available measurement capacity.

What you gain

The result is capacity measured for a specific scenario and agreed limits, a description of how the system behaved under load, and likely bottlenecks. Recommendations can be ranked by risk, expected benefit, and effort.

You only need to know a typical user scenario and be able to complete it manually in the system. You do not need to script anything.

Next step

Start with the question the test should answer: expected traffic, the capacity limit, a sudden peak, or long-term stability. Use it to choose the type of test, scenario, measurement duration, and success thresholds.

Related topics

You might also be interested in

You want to know the capacity of the system in advance

Load and stress tests will show the behavior and capacity of the system in agreed conditions before the expected peak.