
Load testing means putting a realistic amount of simulated traffic on your application before real customers do, then watching what breaks first. The methods differ in the question they answer: a load test asks whether the app copes with the traffic you expect, a stress test asks what happens beyond that, and spike and soak runs ask about sudden surges and long hours. Pick the method that matches the launch, campaign or growth step in front of you, run it against a realistic scenario, and judge it against thresholds you agreed beforehand. Our senior engineers at Ampersand lead projects from the first consultation to handover, and that is also the level of judgment a load test needs: the tooling is the easy part, the design and the reading of results are where tests succeed or mislead.
TL;DR
- A load test checks behavior under expected traffic; a stress test pushes past it to find the breaking point and see whether the system recovers.
- Spike tests (sudden surges) and soak tests (long steady runs) are variations that catch different failures.
- A useful test needs realistic user journeys, a gradual ramp-up, pass or fail thresholds set in advance and server-side monitoring.
- Never test third-party services or systems you do not own without permission, and never use real customer data.
- Judge results by percentiles and error rates, then fix the bottleneck, repeat and compare against a baseline.
What a load test actually measures
A functional test tells you a feature works for one user. A load test tells you whether it still works when hundreds of people use it at once. MongoDB’s overview of load testing describes it as evaluating how web applications, APIs and database-driven systems behave under expected demand, measuring response time, throughput, resource utilization and stability.
In plain terms, these are the numbers you will meet:
- Response time: how long a request takes from start to finish. Look at percentiles, such as p95 (the time within which 95% of requests finish), rather than the average, which hides the slow tail.
- Throughput: how many requests or transactions the system completes per second.
- Error rate: the share of requests that fail.
- Resource use: CPU, memory and database connections on the servers.
Microsoft’s Engineering Fundamentals Playbook adds that the expected level is expressed as concurrent users, requests per second or data size, and that the results can feed capacity planning. That last point matters for a founder: a load test is not only a pass or fail exam, it is a measurement of how much room you have before you must spend money on scaling.
The main load testing methods and when to use each
Load testing: the expected day
Microsoft’s ASP.NET Core documentation on load and stress testing says a load test checks whether an app can handle a specified user load for a scenario while meeting its response goal under normal conditions. Use it before a launch, before a marketing push, and after any major change to the architecture. Typical question: can the checkout handle the 300 concurrent visitors we expect after the newsletter goes out?
Stress testing: beyond the limit
The same documentation describes stress tests as examining stability under extreme conditions, such as high or spiking loads or limited computing resources, and whether the app can recover from failure and return gracefully to expected behavior. This is the answer to the common question about stress testing versus load testing: load testing verifies the plan, stress testing explores the edges of it. You run a stress test to learn where the system breaks, how it fails (slowly or all at once) and how fast it comes back.
Google Cloud’s guidelines for load testing backend services point to a concrete reason: when one instance crashes under overload, its traffic shifts to the others and can cause a cascade failure. They recommend evaluating load shedding, where a system rejects some requests to keep serving the rest well instead of slowing everyone down.
Spike testing: the sudden surge
A spike test jumps the traffic sharply, then drops it. It suits products with sudden peaks: a ticket sale, a television mention, a Black Friday opening, a payroll deadline. It is a form of stress test, and it exposes autoscaling rules that react too late and caches that are cold at the worst moment.
Soak testing: the long haul
A soak test holds a moderate, steady load for hours rather than minutes. Problems that need time to show up, such as memory that is never released or connections that slowly leak, only appear this way. Run one before launching anything that must stay up for weeks without a restart.
Which method for which situation
| Method | Question it answers | Traffic shape | Run it when |
|---|---|---|---|
| Load | Do we meet our targets at expected traffic? | Steady at the expected level | Before launch and after major changes |
| Stress | Where does it break and does it recover? | Rising past the expected level | Before scaling decisions or high-stakes events |
| Spike | Can it absorb a sudden surge? | Sharp jump, then drop | Campaigns, sales, media exposure |
| Soak | Does it stay healthy over hours? | Moderate and long | Before long-running production use |
For most startups, a load test at the expected peak plus one stress run is the sensible first round. Add spike and soak runs when your business model creates those patterns.
How to run a load test, step by step
1. Set the goal and the numbers
Write down what you want to prove: for example, the product page answers within a set time at a given number of concurrent users. Take the figures from your analytics, your business plan or a past peak. Thresholds should come from product requirements, service level objectives or production baselines, and they should be agreed before the run. A typical threshold set from LoadTester’s plan template pairs a p95 and p99 limit per endpoint with a maximum error rate and an automatic stop if latency stays far above target for a minute. The template also says to check thresholds over the steady-state hold, not the ramp-up.
The same template lists what a good plan covers: objectives, scope, workload model, environment, test data, pass criteria, monitoring, risks and stop conditions, and sign-off. Even a one-page version of that list prevents most arguments after the run.
2. Model realistic traffic
This is where most tests go wrong. AWS guidance on realistic test scenarios warns that hitting a single endpoint with uniform requests gives misleading results. Common pitfalls include testing only the happy path, ignoring warm-up effects and testing in isolation from downstream services.
The academic evidence is blunt. A 2008 paper by Lutteroth and Weber shows that a simple model with a 0.2 logout probability makes 20% of virtual users log out right after logging in, which badly underestimates the load on sessions. Their conclusion: a load test is only valid when virtual users behave like real users. A 2016 paper by Brady and Gunther makes a related point: modern web traffic is asynchronous and comes from an unknown number of users, so tools built around a fixed set of synchronized users need care to emulate it.
In practice, build journeys from your real usage: browse, search, log in, add to cart, pay. Weight them by how often real visitors do each one, and use realistic data volumes. An empty database is faster than the one you will have in a year.
3. Prepare the environment and the data
Test against an environment that resembles production in size and configuration. A smaller staging system tells you little about production capacity. Use test accounts and synthetic data, never real personal data, and decide in advance how you will clean up what the test creates. If your product is used by customers in Switzerland, that also keeps you clear of data protection trouble.
Isolate everything outside your control. MaxoPerf’s guidance on safe load testing says to mock or stub third-party services so a test does not send thousands of real emails, charge real payments or trigger real text messages, and to use payment sandboxes such as Stripe test mode.
4. Ramp up gradually
Real traffic rarely jumps from zero to ten thousand users in a second, as the AWS guidance notes. A gradual ramp also gives two benefits: you see at which load level degradation begins, and you can exclude the warm-up window (caches filling, connection pools opening, code compiling) from your analysis. QAble’s performance testing Q&A points out that an instant thousand-user start is effectively a spike test. MaxoPerf suggests ramping for at least two to three minutes as a minimum.
5. Watch the server side while the test runs
The load generator only tells you what a client experienced. You need the other half: application logs, database metrics, queue lengths and the load generator’s own CPU, since an overloaded generator produces false results. Without server-side visibility, a slow result stays a symptom with no cause.
6. Run, stop safely and record
Get explicit sign-off before you start, tell the teams affected, and keep a stop procedure ready. MaxoPerf is direct about authorization: testing a system you have no permission to test is effectively a denial-of-service attack and can bring legal consequences in some jurisdictions. That applies to your hosting provider’s shared infrastructure and any partner API, so check their rules first. Configure automatic stop conditions, for example when the error rate crosses a threshold, so a bad run ends itself.
Reading the results
Start with the thresholds you set. Then dig into the shape of the data:
- Percentiles over averages. InfoQ’s article on Gatling advises examining percentile results rather than averages, and starting with the simplest possible test, then iterating.
- Validate responses. A fast error is not a success. Check status codes and content, not just timing.
- Find the first thing that saturates. Typical culprits are the database, a connection pool, a cache or a third-party call.
A useful way to work, from Marco Behler’s load testing guide: check CPU, memory and I/O on every participant, then application details such as slow code paths and garbage collection, then change the load and repeat. His warning is worth remembering when someone quotes an impressive requests-per-second figure: it means little without a realistic workflow behind it.
Xceptance’s performance success criteria grade results on speed, errors and predictability, and let the worst of the three decide the overall grade. That is a good habit for non-technical stakeholders: a fast system that throws errors at peak is not a pass.
Turning findings into fixes and capacity decisions
A load test pays off when it changes something. Fix the first bottleneck, run again, and compare against a baseline from your first run. The Azure Well-Architected Framework on performance testing recommends exactly this: establish baselines, compare later runs against them, and relate performance improvements to business metrics such as conversion or revenue to justify further investment. It also notes that test environments cannot fully replicate real-world conditions, so controlled testing in production during off-peak hours can expose what staging cannot.
Measured results also tell you how much headroom you have, which is the input for hosting and scaling choices. If your plans involve dedicated hardware, the guide to capacity planning for colocation shows how measured demand informs that kind of decision. Make it a routine: repeat the test before each major release, not once before launch.
Mistakes that make a load test worthless
- Testing only the happy path, such as one page and one user flow.
- Using a workload nobody would recognize as real traffic.
- Treating users, sessions, requests and transactions as the same thing.
- Reading averages instead of percentiles.
- Running against an empty database or an environment far smaller than production.
- Letting the load generator run out of CPU or network, so the test itself becomes the bottleneck.
- Changing many variables between runs, so you cannot tell which change mattered.
DeviQA’s list of nine common mistakes covers these points, and QARMY’s guide adds the reminder that a payment gateway or external service is not yours to stress. Most of them come from rushing the design. Spending an extra half day on the workload model and thresholds is cheaper than a week spent explaining a misleading report.
Where a senior team makes the difference
Load testing is a judgment exercise. Someone has to decide which journeys matter, what a fair threshold is, why p95 climbed at 400 users and what to change first. At Ampersand, every project is led end-to-end by senior engineers, from the first consultation to handover, so the person who understands your architecture is the one reading the results with you. We build websites, web and mobile apps and platforms, and we offer audits, senior-led technical consulting and ongoing support for teams that want the system to keep performing after launch. Our pricing page lists the plans: Run & monitor is 750 CHF per month and Guidance is 799 CHF per month, and the other services are scoped to the project. See the Ampersand services and plans to find the one that fits where your product is today.
FAQ
What is the difference between stress testing and load testing?
A load test checks that the app meets its response goals under the traffic you expect. A stress test pushes beyond that, with very high or spiking load or limited resources, to see where it breaks and whether it recovers gracefully. Run the load test first, then the stress test.
How do I do load testing for a web application?
Define the goal and thresholds, model realistic user journeys, prepare a production-like environment with test data, ramp traffic up gradually, monitor the servers as well as the client results, and compare the outcome with your thresholds. Then fix the first bottleneck and repeat the run against your baseline.
How many users should I simulate?
Use your own expected peak, taken from analytics or the business plan, for the load test. For the stress test, go in steps above that figure until the system degrades. Express the load as concurrent users or requests per second and keep the same unit across runs so results compare.
Can I load test a site that uses a payment provider or third-party APIs?
Do not send test traffic to a live payment gateway or external service. Use sandbox or test modes, or mock the service, and use test credentials with no real personal data. Get written permission for any system you do not own.
Sources
- What is Load Testing? | MongoDB
- Load Testing, Engineering Fundamentals Playbook | Microsoft
- ASP.NET Core load and stress testing | Microsoft Learn
- Guidelines for load testing backend services | Google Cloud
- Load Test Plan Template | LoadTester
- Designing Realistic Test Scenarios | AWS
- Modeling a Realistic Workload for Performance Testing | Lutteroth and Weber, 2008
- How to Emulate Web Traffic Using Standard Load Testing Tools | arXiv, 2016
- Safe and ethical load testing | MaxoPerf docs
- Performance testing interview questions | QAble
- Load Testing APIs and Websites with Gatling | InfoQ
- Load Testing: An Unorthodox Guide | Marco Behler
- Performance Success Criteria | Xceptance
- Architecture Strategies for Performance Testing | Microsoft Azure
- Capacity Planning for Colocation: A Practical Guide
- Performance and stress testing: guide and tools | QARMY
Talk to us
Have a project this touches on?
A free 10-minute call is the fastest way to find out whether we are the right studio for it.
Book a free 10-min callKeep reading
More articles.
When to Hire a Fractional CTO: Signs, Timing and Setup
Wondering when to hire a fractional CTO? Learn the signs, the stages where it pays off, what to define first and how to judge whether it is working.
Read articleStripe vs Datatrans: Which Fits a Swiss Business?
Stripe vs Datatrans for Swiss businesses: fees in CHF and EUR, TWINT and PostFinance support, onboarding, data location and when each one makes sense.
Read articleHow to Test Business Integrations Before Go-Live
A practical guide to testing integrations between your shop, CRM, ERP and other business systems: what to check, in what order, and a checklist you can reuse.
Read article