Every guide on this subject gives you the same five names: load, stress, spike, soak, scalability. Each gets a sentence, none gets a purpose, and you finish the page knowing the vocabulary and still not knowing which one to run on Monday.
They are not five flavours of the same test. They are five different questions, and the shape of the load is what separates them. Running the wrong one gives you a clean report and no information, which is worse than not testing, because now somebody believes something.
So this page is organised around the questions rather than the taxonomy. What performance testing measures and what it cannot tell you. Which test answers which worry. Why the environment decides whether any of it means anything. Where a target legitimately comes from. And how to read a failure, which is where the real work sits.
One thing this page will not do is give you a target response time. Every competing page does, and the number is wrong for you, because it was invented for somebody else. There is a whole section on where a defensible target comes from instead. This sits alongside our QA and software testing services work.
What performance testing measures, and what it cannot tell you
Functional testing asks whether the software does the right thing. Performance testing asks whether it still does the right thing when a lot of people ask at once, and how it behaves when it stops.
That second half matters, because every system has a limit. Performance testing is how you find out where yours is, and what happens when you reach it, before a Tuesday afternoon finds out for you.
What it cannot tell you is whether the software is correct. A system can be beautifully fast and return the wrong answer, and a performance test will report a pass. These are different disciplines that happen to share a team, and our page on software quality assurance covers the wider picture they both sit in.
The four numbers every performance test produces
Whatever tool you use, the output reduces to four things.
Response time: how long one operation takes, from request to usable answer. Not from request to first byte, which is a number that flatters.
Throughput: how many operations the system completes per second. This is the capacity number, and it is the one that stops rising when you hit the wall.
Error rate: the proportion of requests that fail. A system under pressure usually starts erroring before it starts slowing, and teams that watch only response time miss the first signal.
Concurrency: how many things are in flight at the same time. This is the input you control, and it is the axis everything else is plotted against.
Read them together or you will mislead yourself. Response time holding steady while throughput has flatlined and errors are climbing is not a healthy system. It is a system that has started refusing work, and refusing work is fast.
Those four are also what a client-side performance exercise measures, from a different angle. If your concern is how a phone application feels rather than whether a server holds up, mobile app performance optimization is the companion subject.
Why the average is the least useful of them
If you take one thing from this page, take this. The average response time is close to worthless, and it is the number most reports lead with.
Suppose ninety-five requests come back quickly and five take twenty seconds. The average looks fine. Five percent of your users are having an experience nobody would defend, and the number designed to summarise the system has concealed them.
Types of performance testing, by the question each one answers
The five types differ in one thing: what the load does over time. Everything else follows from that shape. So do not start by asking which type to run. Start by asking what you are worried about, and the type falls out of the answer.

Load testing: does it hold up at the traffic we expect?
The shape: ramp up to the expected traffic, hold it steady, ramp back down.
This is the baseline test and the one most teams mean when they say performance testing. It answers the narrowest question in the set: at the volume we plan for, does the system stay inside its targets?
Run it when you have a number for expected traffic and a target to check it against. It is also the right test to repeat, because a stable load test is the thing a regression shows up against.
What it will not tell you is anything about the margin. A pass means you are fine at that level and says nothing about the level above it, which is the next test.
Stress testing: where does it break, and how?
The shape: a staircase, climbing past the expected load, step after step, until something gives.
The point is not the number at which it breaks, although that is useful. The point is the manner of the breaking.
A system that degrades gracefully slows down, sheds load, returns clear errors and recovers when pressure drops. A system that fails badly locks up, cascades into dependent services, corrupts state, or stays broken after the load is removed. Those two systems can have identical load test results and completely different Saturday nights.
Run this before any event you cannot predict the size of, and run it at least once on anything important, because the recovery behaviour is a fact about your system that you would rather learn deliberately.
Watch the recovery, because most teams stop the test at the break. The valuable minute is the one after you remove the load, because that is where you find out whether the system comes back on its own.
Spike testing: what happens when traffic arrives all at once?
The shape: flat and low, then a sudden tall column, then flat again.
This is a different question from stress, and the difference is the rate of change. A system that copes with a gradual climb to ten thousand users can fail at two thousand arriving in five seconds, because autoscaling has not reacted, caches are cold, connection pools are empty and everything queues at once.
The performance test environment decides whether the result is worth anything
This is the section missing from almost every page on this subject, and it is the reason most first performance programmes waste a cycle.
A performance result is a statement about a specific system in a specific environment with specific data. Change any of those and the number changes, sometimes by a lot. Test against something that does not resemble production and you have measured something real, just not the thing you care about.
The symptom is familiar: the test passed comfortably, the release went out, and the system fell over at a fraction of the load the test had cleared. Nobody lied. The test was answering a different question.
Production parity, and what you can safely differ on
Full parity is rarely affordable. The useful skill is knowing which differences change the answer and which do not.
Differences that usually invalidate the result: a smaller database, because query plans change with data volume and an index that was optional becomes essential; fewer or slower instances, because you are measuring a different machine; a different database engine or version; a missing caching layer, or an empty one; running without the load balancer, the proxy or the rate limiter that sit in front of production.
Differences you can usually live with: a smaller number of application instances, provided you scale the load proportionally and are honest that you are testing per-instance behaviour. Reduced redundancy, as long as you are not testing failover. Test doubles for third-party services, provided you model their real latency rather than returning instantly, which is the mistake that makes everything look fast.
The honest compromise is a scaled environment where the ratios hold: same architecture, same software versions, same data shape, proportionally less of everything, and every result reported with the scaling factor attached. That is defensible. An unlabelled number from an unlike environment is not.
Where the environment lives and how faithfully it can be reproduced is usually a cloud infrastructure question rather than a testing one, and it is worth settling before the first test rather than after the first surprise.
Test data volume and shape
Data is the difference teams underestimate most, and it is the cheapest to get wrong.
Volume changes behaviour because databases change strategy as tables grow. A query that scans a small table quickly becomes the slowest thing in the system when the table is large. That transition does not announce itself, and it does not appear in a test against a small dataset.
Where a performance target comes from
Every page on this subject tells you to set performance goals. Almost none tells you where the number comes from, so most teams pick one that sounds right and defend it for years.
A target that was invented is worse than no target, because it gets treated as a fact. Work fails a threshold nobody can justify, or passes one that was never demanding enough.
Starting from the business, not the benchmark
A defensible target starts from what the system is for.
Ask what the operation is and who is waiting. A user watching a page load has a different tolerance from a batch job running overnight, and both are different from an API a partner is calling under their own timeout.
Then look at three sources, in order of usefulness.
What you do today: measure the current system under current load. That is your baseline, and it is the only number on the page that is definitely true about you. Most targets are best expressed relative to it: no worse than today, or better by a stated amount.
What the workflow requires: some numbers come from the work itself. A device that samples every second cannot take longer than a second to process a sample. A checkout that must complete inside a payment provider's timeout has that timeout as a hard ceiling. These are facts, not preferences, and they make the strongest targets.
What your users compare you to: and not an industry benchmark, which is a number about other people's systems. The applications your own users switch between. That comparison is what shapes their expectation, and you can measure it.
Notice what is absent. No universal figure, no under three seconds, no benchmark from a report. Those numbers describe somebody else's system and somebody else's users.
Writing a threshold somebody will sign
A target that cannot be checked mechanically is an aspiration. Four things make it a threshold.
A named operation: not the application. The specific request or transaction, because different operations have different budgets and averaging across them hides both.
A percentile: the ninety-fifth percentile rather than response time, because without a percentile you have implicitly agreed to be judged on the average, and the average hides the tail.
A load condition: because a number is meaningless without the traffic it holds at. Under two thousand concurrent users is part of the target, not context.
An owner: somebody who agrees the number is right for the business and will be the one deciding what happens when it is missed.
The performance testing process, end to end
With the type chosen, the environment honest and the target written, the process itself is short. Most of the difficulty was in the three decisions above it.
Building a workload model that resembles reality
A workload model describes what your virtual users do. It is where synthetic tests most often drift away from the system they are meant to represent.
The common failure is a single-journey test. A thousand virtual users all doing the same thing, usually the thing that was easiest to script. Real traffic is a mixture: some browsing, some searching, some checking out, a few administrators doing something expensive, and a background of automated traffic nobody thinks about.
Build the mixture from your own logs rather than from intuition. Take the real distribution of operations over a busy period, weight the model to match it, and you have a test that resembles a day rather than a demonstration.
Three details make the difference between a plausible model and a misleading one.
Think time: real users pause. A script without pauses generates a request rate no human population produces, which sounds conservative and is actually a different test.
Data variation: every virtual user should work with different records. Identical inputs turn a performance test into a cache test.
Background load: scheduled jobs, reports, integrations and backups run whether or not you are testing. If production has them, the model should.
This is the same discipline as writing a software testing plan: the value is in deciding what to represent, and the scripting is the easy half.
Ramp-up, steady state and what to ignore
A test run has three phases and only one of them produces the number.
Ramp-up: load climbs from nothing to the target level. Response times here are unstable and usually bad, because caches are cold, connection pools are filling and everything is starting up. This is not the result.
Steady state: load holds at the target. This is the measurement window, and it should be long enough for the system to settle and then to stay settled. Short steady states flatter systems that are slowly getting worse.
Ramp-down: load falls away, which is useful for watching recovery rather than for measuring performance.
So report the steady state and exclude the rest, and say so in the report. A number quoted across the whole run is a blend of a system starting up and a system working, and it is not a description of either.
Reading a failure: from a slow number to a named cause
A failed test gives you a number and a graph. Turning that into a cause is the part the result set stops before, and it is the part worth learning.
Start by reading the shape rather than the value. Response times that climb steadily with load mean something is saturating gradually. Times that hold flat and then jump mean a limit was crossed. Times that are fine until a specific minute mean something happened then: a job started, a cache expired, a token was refreshed.
The four places time usually goes
Almost every performance problem resolves into one of four.
Waiting for CPU: the processor is saturated. Throughput flattens, response times climb, and everything slows together. Usually inefficient code, sometimes serialisation nobody intended, occasionally genuinely insufficient hardware.
Waiting for memory: memory pressure shows as pauses rather than a steady slowdown, because collection or swapping stops work briefly and repeatedly. Erratic response times with a healthy average are the signature.
Waiting for input and output: on disk or network, and usually a database: an unindexed query, a lock held too long, a table that has outgrown its plan. This is the most common category by a distance.
Waiting for a turn: queueing behind a limited resource such as a connection pool, a thread pool, a rate limiter or a single-threaded service. The tell is that the resource itself looks idle while requests wait, because the constraint is the number of slots rather than the work.
That last one catches people out, because every dashboard looks healthy: low CPU, low memory, fast queries, slow responses. When everything looks idle and the system is slow, you are queueing, and the next question is what for.
Why the first bottleneck is never the last
Fix the slowest thing and something else becomes the slowest thing. This is not a failure of the fix; it is what the system was always going to do.
A system has a sequence of constraints. Remove the first and load moves through to meet the second, which may be much closer than anyone expected. So plan performance work as several rounds rather than one, and re-test after every change, because the second bottleneck is usually somewhere nobody was looking.
The corollary is when to stop. Stop when the target is met with headroom, not when the system cannot be made faster, because it can always be made faster and the returns shrink each round. Diminishing returns arrive quickly in this work, and the point at which optimisation stops paying is usually earlier than an engineer's instinct suggests.
Performance testing best practices: when to run which test
The traditional answer is a performance phase before release. It is the worst available option, because it is the point at which nothing can be changed. A finding a week before launch becomes a risk to accept rather than a problem to fix.
The better model is three sizes of test, running at three different rhythms.
A small check on every build: a handful of virtual users against the critical operations, taking a couple of minutes, failing the build if the response time moves beyond an agreed margin. It will not find a capacity limit. It will find the change that made a key query ten times slower, on the day somebody made it, while they still remember why. That is the highest-value performance work most teams are not doing.
A full load test on a schedule: weekly or per release candidate, with the real workload model, the honest environment and the agreed thresholds. This is the test that answers whether you meet your targets, and it needs to be routine enough that a failure is information rather than an event. The decision about what to automate here follows the same reasoning as automated and manual testing anywhere else.
A deep test before structural change: stress, spike, soak or scalability, chosen by what the change threatens, whether that is a new database, a migration, a major architectural shift or an expected surge in traffic. These are expensive, so run them when there is a specific question worth the cost.
Three more practices that pay for themselves.
Keep the history, because performance results are only interesting in comparison. A number from today means little; the same number tracked across thirty releases shows you the drift you would otherwise never see.
Test in production too, carefully: synthetic checks against the live system, at low volume, tell you what real users are actually getting. The test environment tells you what should happen; production tells you what does.
Treat a performance failure as a defect, because if it goes into the same queue as functional bugs, with an owner and a priority, it gets fixed. If it goes into a separate performance report, it gets read and filed.
One closing note on scope. Performance and security both fail under adversarial conditions, and both are easiest to design for early. The same argument for shifting performance testing left applies to , and teams usually move both or neither.
Performance testing: quick answers
What is performance testing in software development?
Performance testing measures how a system behaves under load rather than whether it produces the right answer. It produces four numbers: response time, throughput, error rate and concurrency. Its purpose is to find where the system's limit is, and how it behaves when it reaches it, before real traffic finds out first.
What is the difference between load testing and stress testing?
Load testing holds the traffic you expect and asks whether the system stays inside its targets. Stress testing pushes past that level until something breaks, and the useful finding is how it breaks: whether it degrades gracefully and recovers, or locks up and stays broken. Load testing tells you that today is fine. Stress testing tells you how much room you have.
When should performance testing be done?
Continuously, in three sizes. A small check on every build, taking a couple of minutes against the critical operations, to catch the change that made something ten times slower. A full load test weekly or per release candidate. And a deep test — stress, spike, soak or scalability — before a structural change. A single performance phase before release is the traditional model and the least useful, because nothing can be changed by then.
How many users should a performance test simulate?
There is no portable number. Start from your own traffic data at the busiest period you have measured, then test at that level, at a multiple of it to find your headroom, and at the level you expect after whatever growth you are planning for. A count borrowed from another organisation describes their system, not yours.
What makes a performance test result unreliable?
Most often the environment. A smaller database changes query plans, a missing cache layer changes everything, and generating load from the same network as the system removes the internet from the measurement. Other common causes are a single-journey workload model, no think time, identical data across virtual users, measuring across ramp-up instead of steady state, and a load generator that ran out of its own capacity.
Where to take your performance testing next
The most common outcome of a first performance test is not a failure. It is a number nobody can interpret, produced in an environment nobody trusts, against a target nobody agreed. That is a scoping problem rather than a testing problem, and it costs a cycle to discover.
So before the next test, settle three things. Which question you are asking, which decides the type. Whether the environment is close enough to production to make the answer mean something. And where the target came from, so a failure is a decision rather than an argument.
If you are setting that up, or holding a result you are not sure you believe, talk to 4Labs Technologies. Bring the number and the environment it came from. Half the useful conversation is about whether the test was measuring what you think it was.





