Skip to content

Analyzing performance test results: from charts to a decision

B2Bnetwork team · · 6 min

System performance

In brief

Analyzing performance test results starts with checking whether the test generated the planned traffic, and only then with response times. Next you look for the saturation point, where throughput stops growing and response times rise sharply, and for the resource that saturated at that moment. The shape of the charts suggests the cause, resource metrics confirm it. Finally the result becomes one of three decisions: the system is ready, ready with risk and conditions, or not ready, with a list of fixes.

Step one: did the test do what it was meant to

Before anyone looks at p95, check the test itself. Surprisingly often the problem is on the side of the load generator or the script:

  1. Achieved request rate. If the plan assumed 300 transactions per second and the chart shows 220, the test did not check the goal. A common cause is too few virtual users once responses slow down.
  2. Generator resources. A generator running at 95% CPU delays requests itself and inflates response times.
  3. Script errors. 200 responses carrying a login error page, an empty cart, missing test data. Assertions in the script should catch these, but review a sample of responses anyway.
  4. Workload model. In a closed model, when the system slows down, virtual users send fewer requests and part of the delay disappears from the results. If real customers arrive regardless of how fast the system responds, closed-model results are too optimistic.
  5. Warm-up. The first minutes with an empty cache and just-in-time compilation are usually excluded from the assessment, but checked separately to make sure they are acceptable for the first customers after a deployment.

Step two: the saturation point

The most important chart is throughput and response time as a function of load. While the system has headroom, throughput grows with traffic and response times stay almost flat. At the saturation point, throughput stops growing and response times start climbing sharply: requests queue in front of a resource that is already fully busy.

Little's law gives you a consistency check: the number of requests in the system equals throughput times response time. At 200 requests per second and a 0.5 second response, there are on average 100 requests in the system at once. If the thread or connection pool has 100 slots, that is exactly the limit. This calculation is covered further in Capacity planning for transaction systems.

Read response times as percentiles over time, not as a single number for the whole test. A percentile over a full hour hides a ten-minute window in which the system almost stopped. Why an average misleads even more is explained in Percentiles instead of averages.

Step three: the shape of the chart suggests the cause

An experienced analyst recognizes typical shapes. The table below is a starting point, not a diagnosis: every hypothesis has to be confirmed with metrics.

What you seeCommon causeWhat to check
Flat throughput, response times growing with traffica saturated resource or poolCPU, thread and connection pools, database locks
Response times growing at constant traffica growing queue or a memory leakqueue lengths, memory and garbage collection over time
Periodic spikes every few minutesgarbage collection, a scheduled job, a cache flushGC logs, job schedule, cache expiry
A sudden rise in errors after some minutesan exhausted pool, timeouts, no disk spaceconnection pools, error log, disk
Good p50, bad p99lock contention, pauses, cold datadatabase locks, GC pauses, cache hits
One node much busier than othersuneven traffic distribution, sticky sessionsload balancing, key distribution

Step four: resources and evidence

A hypothesis is confirmed with resource metrics from the same period as the response times. The USE method helps: for each resource (CPU, memory, disk, network, pools, queues), check utilization, saturation (the queue of requests waiting for the resource) and errors. A resource with high utilization and a growing queue is a bottleneck candidate.

From the other side you look at service signals: latency, traffic, errors and saturation. Distributed traces show which layer a request spends its time in: the application, a database query, a call to an external system. How to build that data set is covered in Observability.

Evidence in the report is a concrete artifact: a resource chart overlaid on response times, the plan of a slow query, a request trace with the step marked. The sentence "the database is slow" without evidence leads to expensive changes that achieve nothing.

Step five: from result to decision

The project manager and the business do not need every chart. They need a decision and conditions. A good report ends with one of three answers:

DecisionWhenWhat it contains
Readyall thresholds met with headroom at the forecast peakcapacity headroom and the resource that will run out first
Ready with riskthresholds met, but headroom is small or one journey is on the edgeconditions: monitoring, a contingency plan, a fix by a set date
Not readythresholds exceeded at the forecasta prioritized list of fixes and a rerun plan

Every fix goes back to the test. A result such as "after the fix, p95 dropped from 2.1 s to 0.6 s at the same traffic" is an argument no steering committee will dispute. A result without a rerun is a promise.

Decisions like these were made, for example, in full performance testing of online banking before a core system migration and in testing a service activation system before a smartphone launch. At B2Bnetwork, performance testing ends with a report that includes causes and recommendations, not just a measurement. What else such a report should contain is covered in How much does performance testing cost and what should the report include.

Questions and answers

How do you tell a system problem from a load generator problem?

Check generator resources and the achieved request rate. If the generator has high CPU or does not reach the planned rate, the results are distorted. A second, small generator with a few users also helps: if its times are good while the large one's are bad, the problem is on the generator side.

What if two identical tests give different results?

First check whether they really were identical: data, cache state, application version, other jobs in the environment. Differences of a few percent are normal. Larger ones usually come from an environment shared with other tests or from background jobs. Reruns and a comparison of resource metrics settle it.

Is one test enough to decide on go-live?

Rarely. You need at least a load test at the forecast level and a rerun after fixes. For critical systems, add a stress test that shows the headroom and an endurance test that detects leaks. The decision rests on a series, not on a single chart.

Who should analyze the results?

A performance engineer together with people who know the system: the architect, the database administrator, the developer of the critical service. The engineer knows the method and the tools, the team knows the system. Analysis done alone usually ends with a good hypothesis and no evidence, or evidence without an understanding of the cause.

What it looks like in a project

Your system slows down under load? We'll find where it loses time.

Let's talk

Read more: System performance

All in System performance →