Performance testing
Performance testing is non-functional testing that measures how fast, how stable and how resource-hungry a system is under a stated workload, and compares the results with targets agreed in advance. It is the parent of several narrower test types: load, stress, spike, endurance, scalability and volume testing each change one part of the workload and answer a different question.
The longer version
ISO/IEC 25010, the software product quality model, names the quality being tested: performance efficiency, which it describes as the degree to which a product performs its functions within specified time and throughput parameters. The model splits it into time behaviour (response times and throughput), resource utilisation (the amounts and types of resources used) and capacity (whether the product's maximum limits meet requirements). A performance test turns those three into numbers for one system: response times read as percentiles, such as the median and the 95th, throughput in requests or transactions per second, the error rate, and CPU, memory, disk and database use while the test runs. The numbers mean something only against a target written down before the run, such as a search that answers within a second for 95 in every 100 requests at the expected peak. A run with no target produces a chart and no verdict, which is why the targets are usually agreed with whoever owns the product before a script is written.
The types are named after the part of the workload they change. Load testing is the baseline: the expected peak number of users, held long enough to measure. Stress testing raises the load past what the system is expected to handle until it degrades or fails, to learn where the limit is and how the failure looks. Spike testing takes away the ramp and raises the load almost at once, then watches the recovery. Endurance testing, also called soak testing, keeps an ordinary load running for hours or days to catch leaks and slow decline. Scalability testing repeats the measurement at several loads or resource sizes and reads the curve. Volume testing keeps the users ordinary and grows the data, such as a catalogue of a million products or a table with years of orders. Lists that count ten or more types split stress testing by where it stops (peak, breakpoint, capacity) or include resilience checks. Failover testing, which removes a component on purpose to check that a standby takes over, belongs with those resilience checks: it is usually run under load, and the question it answers is about losing a part of the system rather than about demand.
A website or web app has two performance sides, and a test of one says little about the other. The server side is what a load generator measures: virtual users sending requests to the pages and the API, and the time the servers take to answer. The browser side is what happens on the visitor's device once the response arrives: downloading scripts and images, rendering, and reacting to taps and clicks. Google's web.dev guidance on Core Web Vitals sets the targets most teams use there: largest contentful paint of 2.5 seconds or less, interaction to next paint of 200 milliseconds or less and cumulative layout shift of 0.1 or less, each assessed at the 75th percentile of page loads, separately for mobile and desktop. The same guidance calls the Core Web Vitals field metrics first and foremost, and notes that lab tools such as Lighthouse cannot measure interaction to next paint because no user is interacting, so total blocking time stands in for it in the lab. A server that passes its load test can still serve a page that feels slow on a mid-range phone, and a page that scores well in the lab can be slow for the visitors who come through a congested network.
Performance testing is cheapest when it is planned with the feature and repeated, rather than run once in the last week before a launch. The usual sequence is to agree the targets, model the workload from analytics or launch forecasts (which journeys, how many users, how long each one pauses between steps, what data they touch), prepare an environment and data close to production in size, run the test while monitoring the servers and the database, find the bottleneck, fix it and run again. Teams with a delivery pipeline often add a short, repeatable load test to every release so that a slow query is caught the week it is merged. Real users then supply the last kind of evidence: a report that a page is slow is a performance finding too, and it is useful only with the page, the browser, the device, the time and the slow request attached.
Common questions
What is performance testing in simple terms?
Performance testing checks whether software is fast enough and stays stable when many people use it at once. A tool imitates the expected number of users, measures how long each page or request takes and how many fail, and the team compares those numbers with targets agreed before the test, such as a page that loads within two seconds at the busiest hour.
What are the types of performance testing?
The common types are load testing at the expected peak, stress testing beyond it until something degrades, spike testing with a sudden surge, endurance or soak testing over many hours, scalability testing at several loads or resource sizes, and volume testing with a large amount of data. Failover testing, which takes a component away under load, is often listed beside them as a resilience check.
Is performance testing the same as load testing?
Load testing is one type of performance testing: the run at the expected peak volume, which the other types vary. Performance testing is the whole family, and it also covers stress, spike, endurance, scalability and volume runs, plus the browser-side measurements of how quickly a page renders and responds on a visitor's device.
What metrics and KPIs are measured in performance testing?
Response time as percentiles, such as the median and the 95th, throughput in requests or transactions per second, the error rate, the number of concurrent users, and resource use on the servers and the database. For web pages, teams add the Core Web Vitals, which Google's web.dev guidance assesses at the 75th percentile of page loads. An average on its own hides the slow requests users notice.
Is performance testing functional or non-functional testing?
Performance testing is non-functional testing. A functional test asks whether a feature gives the right result, while a performance test asks how quickly and reliably it gives that result under a given workload. The two often use the same journeys, and a performance script that ignores wrong answers can report a fast system that is returning errors.
Which tools are used for performance testing?
Server-side load is usually generated with a load testing tool. Apache JMeter describes itself as open source software designed to load test functional behaviour and measure performance, and Grafana k6 as an open-source performance testing tool whose scripts are written in JavaScript. For the browser side, lab tools such as Lighthouse measure a page load, and real user monitoring measures what visitors actually experienced.
Bug reports that arrive ready to triage.
Collect replay, console, network and browser context with the Free plan.