Load testing asks whether your system handles the traffic you expect. Stress testing asks where it breaks and how it recovers. Performance testing is the umbrella over both. Here is how they compare, with a worked load test you can copy.
Performance, load, and stress testing get used as if they mean the same thing. They don't, and mixing them up leads to the wrong test. The short version:
- Performance testing is the umbrella term. It covers any test that measures speed, stability, and resource use while the system is under a workload.
- Load testing answers one question: can the system handle the traffic you expect, within the response times you promised?
- Stress testing answers a different one: where does the system break, how does it fail, and does it recover on its own?
Spike and soak testing belong to the same family. The table puts all five side by side, then we walk through a load test from scenario to pass or fail.
Performance vs load vs stress testing at a glance
Test type | Goal | Load level | Question it answers | Key metrics | When to run |
|---|---|---|---|---|---|
Performance testing | Measure speed, stability, and resource use under a workload | Any, from light to beyond capacity | Is the system fast and stable enough for its users? | Response time percentiles, throughput, error rate, CPU, memory | Continuously, as a family of tests across the release cycle |
Load testing | Confirm the system meets its targets at expected traffic | Expected and peak expected traffic | Can we handle the traffic we expect? | p95 and p99 response time, throughput, error rate | Before releases, before known busy periods, after infrastructure changes |
Stress testing | Find the breaking point and the way the system fails | Beyond expected peak, increasing until failure | Where do we break, how, and do we recover? | Load at first threshold breach, error types, recovery time | Before major launches and capacity planning |
Spike testing | Check behavior under a sudden surge | A sharp jump far above normal, then back down | What does a sudden surge do to us? | Errors during the jump, autoscaling lag, time to recover | Before campaigns, ticket sales, or other traffic bursts |
Soak testing | Find problems that only appear over time | Normal expected traffic held for hours | Does anything degrade or leak over a long run? | Response time drift, memory growth, connection pool use | Before releasing services that run for days without a restart, and after memory-related fixes |
Three related terms come up in the same searches. Volume testing varies the amount of data rather than the number of users, for example running the same queries against a table with 10 times more rows. Capacity testing finds the most users or transactions the system can serve while still meeting its targets. Scalability testing adds resources or load in steps to see whether performance grows with them. All three sit under the performance testing umbrella. For the full map of where these fit among other test types, see different types of QA testing.
What is performance testing?
Performance testing is non-functional testing that measures how responsive, stable, and efficient a system is while it does real work. Functional tests ask whether a feature works. Performance tests ask whether it still works well when many people use it at once, for a long time, or with a lot of data.
It is a category, not a single test: usually a mix of the rows in the table above, plus failover checks such as taking down a database node mid-test. The output is not one pass or fail but a picture of how the system behaves under different conditions, which feeds capacity planning and tuning.
What is load testing?
Load testing is a type of performance testing that runs the system at its expected traffic, including the expected peak, and checks the results against agreed targets. You are not trying to break anything; you are proving the system meets its service level objectives under the traffic it will really see. With clear thresholds and a clear pass or fail, it is the most useful test in the family for release decisions.
For the full process, from building a workload model to running load tests in CI/CD, see our guide to load testing.
What does load testing measure?
- Response time percentiles: p50 is the median; p95 is the time that 95% of requests finish within, so only the slowest 5% take longer (p99 is the same for 1%). Averages hide slow outliers, so set targets on percentiles.
- Throughput: requests or transactions per second the system completes. If throughput stops rising while load rises, you have found a bottleneck.
- Error rate: the share of requests that fail, time out, or return a server error.
- Resource use: CPU, memory, database connections, and queue depth, so a slow response can be traced to a cause.
A worked load testing example
Here is a load test for the product search on an online store. All numbers below are illustrative targets for this example, not benchmarks.
1. Define the scenario. Most visitors search, open a product, and either add it to the cart or leave. Search is the busiest and slowest of those steps, so this test targets it: each virtual user searches, pauses, and searches again. A full test scripts each step with its own think time.
2. Set the expected load. The team expects up to 500 concurrent users in the busiest hour.
3. Plan the ramp. Starting all 500 users at once tells you about a spike, not normal load. Instead, ramp from 0 to 500 users over 10 minutes, hold at 500 for 30 minutes, then ramp down over 5 minutes. The hold period is the part to read most closely.
4. Add think time. Real users pause to read a page, so each virtual user waits a random 3 to 8 seconds between searches. Without think time, 500 virtual users generate far more requests than 500 real people.
A quick check on expected throughput uses the interactive form of Little's Law: throughput equals the number of users divided by the time each loop takes, which is response time plus think time. With 500 users, about 5.5 seconds of average think time, and about 0.5 seconds of response time, that is roughly 500 divided by 6, or about 83 requests per second, since each loop sends one request. If the tool reports far more, the think time is not being applied.
5. Set the pass or fail thresholds before you run, with the product owner:
- p95 response time for search under 800 ms
- Error rate under 1%
- Throughput steady during the 30-minute hold, with no downward drift
6. Script it. This is the same test in k6, which lets you put the ramp and thresholds in the script so the run fails on its own when a target is missed:
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '10m', target: 500 }, // ramp up
{ duration: '30m', target: 500 }, // hold at expected peak
{ duration: '5m', target: 0 }, // ramp down
],
thresholds: {
http_req_duration: ['p(95)<800'], // p95 under 800 ms
http_req_failed: ['rate<0.01'], // error rate under 1%
},
};
export default function () {
const res = http.get('https://shop.example.com/search?q=running+shoes');
check(res, { 'search returned 200': (r) => r.status === 200 });
sleep(3 + Math.random() * 5); // think time, 3 to 8 seconds
}The syntax is in the k6 thresholds guide. k6 evaluates thresholds over the whole run, ramps included; to judge only the hold, split it into its own scenario and set the threshold on that scenario's tag. JMeter and Gatling support the same idea through assertions; in Locust you set the process exit code from an event hook that runs when the test ends.
7. Read the result. Suppose the team runs the test twice:
Run | p95 search response time | Error rate | Throughput during hold | Result |
|---|---|---|---|---|
Run 1 | 1,450 ms | 0.4% | Fell from about 82 to about 75 requests per second | Fail |
Run 2, after adding a database index | 620 ms | 0.3% | Steady at about 82 requests per second | Pass |
Run 1 fails on response time even though errors are low. Falling throughput at a steady 500 users is the giveaway: each request took longer, so fewer completed. Server metrics showed the database at full CPU on the search query, which pointed to the missing index. Run 2 meets all three thresholds, and its throughput matches the estimate, so the test itself behaved as designed.
Note what the load test did not tell you: how far above 500 users the store can go. That is a stress test question.
Performance testing vs load testing
Load testing is part of performance testing, not an alternative to it. Three differences matter in practice:
- Scope: performance testing is the whole category, covering load, stress, spike, soak, and volume tests. Load testing is one test with one question: can the system handle the traffic you expect?
- Output: performance testing as a whole gives you a picture of behavior across conditions. A load test gives you a pass or fail against thresholds agreed in advance, like the two runs in the example above.
- When and who: load tests run before each release and gate it, so QA and release owners ask for them. Broader performance work feeds capacity planning and tuning, and usually brings in engineering and operations too.
If someone asks for "performance testing" without saying more, ask which row of the table they mean.
What is stress testing?
Stress testing is a type of performance testing that pushes the system beyond its expected peak to find the breaking point and see how it fails. The goal is not a pass but knowledge: where thresholds start to break, what gives out first, and whether the system recovers when the load drops.
A typical stress test reuses the load test's scenario and keeps ramping. For the store, step from 500 users to 750, 1,000, 1,250, and onward, holding each step for a few minutes, until p95 or the error rate crosses the threshold. Then drop back to normal load and watch.
What to record:
- The breaking point: the load at which the first threshold is breached, and the one where most requests fail.
- The failure mode: does the system slow down gradually, reject new requests cleanly, or crash and take other services with it?
- The bottleneck: which resource ran out first, such as CPU, memory, database connections, a thread pool, or a third-party rate limit.
- Recovery: how long until response times and error rates are back within target, and whether anyone had to restart something by hand.
How is a stress test different from a benchmark?
A stress test is not a benchmark, and the difference is purpose. A benchmark measures performance under a fixed, repeatable workload so you can compare versions or hardware. A stress test changes the workload until something gives.
Load testing vs stress testing
The two use the same tools and often the same scripts. The difference is the load level and the question: a load test stays within expected traffic and ends in a pass or fail, while a stress test goes past it on purpose and ends in a breaking point and a failure mode.
A useful habit: run the load test first. If the system fails at expected traffic, a stress test adds nothing until that is fixed. Once the load test passes, the stress test tells you how much headroom you have above it.
Spike and soak testing
Spike testing
Spike testing sends a sudden jump in traffic, holds it briefly, and drops back. It shows whether autoscaling reacts fast enough and whether the system recovers. Run it before events with a known start time, such as a sale opening.
Soak testing
Soak testing, also called endurance testing, holds normal load for several hours or longer. It catches problems that a 45-minute load test never reaches: memory leaks, connection pools that slowly fill, log files that fill a disk, and caches that grow without limit. For setup and what to monitor, see our guide to soak testing.
When should you run each type of test?
- Nightly: a small load test on key endpoints, with thresholds loose enough not to flake.
- Before each release: the full load test at expected peak, as a release gate.
- Before launches and peak seasons: stress and spike tests.
- Before releasing services that run for days without a restart: a soak test.
- After infrastructure changes: rerun the load test, even if no code changed.
Load test scenarios often start from the same user journeys as your functional API test cases.
Which tools run load and stress tests?
All five below handle load, stress, spike, and soak tests; most teams pick by scripting language. For a longer comparison, see our list of performance testing tools.
Tool | License | Scripting | Good fit when |
|---|---|---|---|
Open source | GUI test plans, with Groovy for custom logic | You want a mature tool with many protocols and plugins, and a GUI to build tests | |
Open source | JavaScript | Developers will write and review tests as code and run them in CI | |
Open source, with a commercial edition | Java, Kotlin, Scala, JavaScript, or TypeScript | You want tests as code in a JVM or JavaScript stack, with detailed HTML reports | |
Open source | Python | Your team writes Python and wants to model user behavior in plain code | |
LoadRunner (now OpenText Professional Performance Engineering) | Commercial | C, JavaScript, and protocol recorders | You need wide protocol coverage, including legacy enterprise protocols, with vendor support |
If your team already works in Katalon Studio, the guide to performance testing with Katalon and OctoPerf shows how to start an OctoPerf load test from your test runs and report the results alongside your functional tests.
Common load testing mistakes
- Targeting averages. An average of 300 ms can hide a p99 of several seconds. Set targets on percentiles, and watch the error rate too: a server that returns errors quickly can make response time charts look great.
- Testing a different environment. A staging database with a fraction of production data makes search look fast. Match data volume and configuration as closely as you can.
- Overloading the load generator. If the machine running the test hits full CPU, the response times you see are its delay, not your system's.
Summary
Performance testing is the family: load testing checks targets at expected traffic with a clear pass or fail, stress testing finds the breaking point and the recovery time, and spike and soak testing cover surges and long runs. Start with a load test you can repeat on every release, then add the others where your traffic patterns call for them.
Frequently asked questions
No. Performance testing is the umbrella term for any test that measures speed, stability, and resource use under a workload. Load testing is one type of performance testing. It runs the system at expected traffic, including the expected peak, and checks results such as p95 response time and error rate against targets agreed in advance.
Stress testing is one type of performance testing. Performance testing covers every test of speed and stability under load, including load, spike, and soak tests. Stress testing pushes traffic beyond the expected peak on purpose to find the breaking point, see how the system fails, identify the bottleneck, and measure how long it takes to recover.
A load test stays within expected traffic and checks whether the system meets its targets, so it ends in a pass or fail. A stress test keeps increasing load past the expected peak until thresholds break. It ends in a breaking point, a failure mode, and a recovery time, which feed capacity planning rather than a release gate.
Load testing checks that a system meets its targets at expected traffic. For example, an online store expecting 500 concurrent shoppers ramps virtual users to 500 over 10 minutes, holds for 30 minutes with 3 to 8 seconds of think time, and passes only if p95 search time stays under 800 ms and errors stay under 1%.
A benchmark runs a fixed, repeatable workload so you can compare performance across versions, configurations, or hardware. The workload stays the same and the system changes. A stress test does the opposite: the system stays the same and the workload keeps rising until something breaks, so you learn the limit and the failure mode.
Neither is better for every team. Apache JMeter is open source, free, and has a large plugin ecosystem and GUI test plans. OpenText LoadRunner, now sold as Professional Performance Engineering, is commercial, with wide protocol coverage, including legacy enterprise protocols. Choose based on the protocols you test, your budget, and whether you need vendor support.

Test everything. Ship with confidence.
From generating test cases to spotting failures, Katalon's AI works across your entire pipeline, automatically.

