Skip to content
DisrupsoftDisrupsoft
General

Website load testing: when and how to do it

Website load testing: when to run it, what to measure, which tool to use (JMeter, Locust or Azure Load Testing) and how to add it to your CI/CD pipeline.

Website load testing: when and how to do it

The new payments portal passed every functional test. On the first day of the monthly billing run, 2,000 customers logged in between 9:00 and 9:15 to pay. By 9:07 the database had used up every connection, the "Pay" button just kept spinning, and the call center took more calls than in the whole previous month.

Website load testing exists so you find that out on an ordinary Tuesday, with simulated traffic, instead of on launch day with real customers. A functional test tells you the system does what it should. A load test on your web application tells you whether it still does it when 500 people use it at once, how long it takes, and where it breaks.

When to run load tests

Not every system needs an elaborate performance plan. An intranet used by 30 people will probably never get near its limit. But there are moments when a test pays for itself:

  • Before launching a new system for customers or suppliers, especially if the launch is announced and everyone shows up on the same day.
  • Before events with a known date: Cyber Monday, Black Friday, enrollment periods, month-end close, payroll or a big marketing campaign.
  • When a bulk process is coming: an overnight load of thousands of documents, an ERP sync or batch invoicing.
  • After major changes: moving to the cloud, upgrading the framework, rebuilding the database or adding a new integration.
  • When the system has already slowed down and nobody knows why. A test helps you reproduce the problem in a controlled way.

If your event is this week, see our last-minute checklist in Black Friday 2026: will your website handle the peak?. This article is about building the habit so the next big date doesn't catch you without data.

Types of tests: they answer different questions

"Load test" gets used as a catch-all, but there are variants and each one answers a different question.

TypeWhat it simulatesWhat it tells you
LoadExpected traffic on a normal day or at the planned peakDo we meet response times under the demand we expect?
StressIncreasing traffic until something failsWhere is the limit, and which component breaks first?
SpikeA sharp jump within a few minutesWhat happens when everyone arrives at once, like midnight on a sale day?
SoakModerate load sustained for hoursAre there memory leaks or connections piling up over time?

For an online store ahead of a sale, spike and load tests are the most useful. For an internal system that runs overnight jobs, a soak test usually finds more problems.

What to measure so the test is worth it

A common mistake is looking only at average response time. An 800 ms average can hide the fact that one user in ten waits 6 seconds. That's why percentiles matter: p95 is the time under which 95% of requests complete.

On the client side, meaning what the simulated user sees:

  • Response time per step (p90 or p95), separately for the home page, search, cart and checkout.
  • Error rate, including 5xx responses and timeouts.
  • Requests per second the system can actually serve (throughput).

On the server side, which explains the numbers above:

  • CPU and memory on the application servers.
  • Connections, locks and slow queries in the database. It's usually the first bottleneck to show up.
  • Latency of external services: ERP, payment gateway, email or invoicing services.

Before running the test, decide what an acceptable result looks like. For example: "checkout p95 under 2 seconds and less than 1% errors with 800 concurrent users." Without a written threshold, any result looks reasonable after the fact.

Tools: JMeter, Locust and Azure Load Testing

These are the three most common options in custom software projects:

ToolHow tests are writtenWhen it fits
Apache JMeterA GUI that produces XML plans (.jmx); supports HTTP, JDBC, queues and other protocolsQA teams that prefer configuring over coding, or tests against databases and non-web protocols
LocustPython scriptsDev teams that want tests as code, versioned alongside the system
Azure Load TestingQuick test from a URL, or upload JMeter or Locust scriptsWhen you need a lot of traffic without setting up your own load machines

JMeter and Locust are open source and free. The practical catch is that you can't generate thousands of concurrent users from a single computer: your laptop becomes the bottleneck. That's where a managed service comes in.

Azure Load Testing, now part of Azure App Testing, runs JMeter or Locust scripts (it doesn't support other frameworks) on test engines that Microsoft manages. Your application can live in Azure, in another cloud or on your own servers; for systems without a public endpoint, you can deploy it inside a virtual network. If the app runs on Azure, the dashboard also shows server resource metrics during the test, which saves you from lining up charts by hand.

On cost, according to the Azure App Testing pricing page, you pay per virtual user hour (VUH): USD 0.15 per VUH up to 10,000 VUH and USD 0.06 above that. Microsoft's own example: 1,000 virtual users for 30 minutes is 500 VUH, which comes to about USD 75 at the first-tier rate. Since March 1, 2026 there is also a minimum charge per run (10 virtual users per engine, for at least 10 minutes), so a tiny test isn't free.

Adding load tests to CI/CD

A load test run once a year before the big event helps, but it comes late: if a March release slowed down checkout, you find out in November. What works better is a short test on every release candidate in the staging environment, and a longer one before each critical date.

Azure Load Testing can run from GitHub Actions or Azure Pipelines, or from the Azure CLI in other tools. The configuration lives in a YAML file next to the script, in the same repository. That's where you set fail criteria such as p95(response_time_ms) > 2000 or percentage(error) > 1. If the test misses them, the pipeline fails and the build doesn't move on to production.

You can also set an auto-stop when the error rate crosses a threshold within a time window. It keeps you from paying for 30 minutes of testing against a mistyped URL.

Three things to watch when setting this up:

  1. The test environment has to resemble production in size and configuration. If the staging database has half the capacity, the results don't compare.
  2. Test data shouldn't be a copy of production with real personal data. We cover this in real data in test environments and Chile's Law 21.719.
  3. Give external providers a heads-up. A load test against the live payment gateway can trigger blocks or charges; use their sandbox environments or mock those responses.

Frequently asked questions

How often should we run load tests?

A short test on every release that goes to production, and a full test before every event with a known date or after a major infrastructure change. If the system barely changes, once a year may be enough.

Can I run the test directly in production?

You can, carefully: off-hours, with identified test users and without hitting real external services. The usual approach is to test in an equivalent environment and keep production for a brief, controlled check.

How many virtual users should I simulate?

Start from your real data: the peak concurrent users your analytics show, multiplied by the growth you expect during the event. Then push a bit higher to see how much headroom you have.

Know how much your system can take before your customers find out

At Disrupsoft we build custom software and web applications, work with Docker, GitHub, CI/CD and Azure, and ship every release through a known path. If you have a launch or a critical date coming up, or a system that keeps slowing down for no clear reason, let's talk about your custom software development.

Pruebas De CargaDesarrollo WebQaCi CdAzure

← View more articles