QA Interview Hub · Knowledge base · Quizzes · Українська

All topics

Performance Testing interview questions and answers for QA

15 Performance Testing questions that come up in QA interviews, with short answers. Open the topic in the knowledge base for a deeper explanation.

Which kinds of performance testing exist and what is each for?

Load — whether the system holds the expected load within the goals; stress — where the limit is, how the system fails and recovers; spike — a sudden short jump in traffic; soak (endurance) — stability over hours and days (memory leaks, queues); scalability — how performance changes as resources grow; capacity — the maximum within the SLA for planning resources. The common name for all of these is performance testing.

Read the topic

How does load testing differ from stress testing?

Load applies the expected load (typical and peak) and checks the goals are met: response time, errors, throughput. Stress deliberately goes beyond normal to find the point of degradation or failure, to check how the system fails (gracefully or with data loss) and whether it recovers once the load is removed.

Read the topic

What are spike and soak tests?

Spike — a sharp jump in load within a short time (a sale starts, a mailing goes out) and a check that the system copes and recovers quickly. Soak (endurance) — a moderate steady load for hours or days; it reveals what appears only over time: memory and connection leaks, growing queues, a full disk, slow degradation.

Read the topic

When should performance testing start and where?

As early as possible: single APIs and critical queries are checked during development (shift-left), the full scenario load test runs before the release on an environment close to production, and after the release metrics are watched. Architectural problems found late (extra queries, missing indexes, synchronous calls) are expensive to fix.

Read the topic

Response time, latency and throughput: what are they?

Response time — the full time from sending a request to receiving the response. Latency — usually the delay before the response starts (network, waiting); tools sometimes use the terms differently, so a report states what was measured. Throughput — how many requests or transactions the system handles per unit of time (RPS, TPS).

Read the topic

Why look at p95 and p99 rather than the mean response time?

The mean smooths the slow tail: with a mean of 200 ms p99 can be 4 s, so 1% of users wait over 4 seconds. p95 is the value that 95% of requests do not exceed. Goals are phrased with percentiles ("p95 < 500 ms"). Percentiles of different instances are not averaged: raw data or histograms are needed.

Read the topic

Which key metrics should a performance test report contain?

Response time (mean and percentiles p90/p95/p99, maximum), throughput (RPS/TPS), error rate (5xx, timeouts, assertion failures), the number of active users (VUs) and resource utilisation: CPU, memory, disk, network, database connections. They must be read together: a good time without the error rate proves nothing.

Read the topic

How do concurrent users, think time and RPS relate?

RPS ≈ number of users / (response time + think time). So 1000 users with a 10 s pause between requests produce about 100 RPS, not 1000. The same set of VUs creates more load the shorter the pauses, so think time must match real behaviour.

Read the topic

What is a workload model and how is it built?

It describes which scenarios users run, in what proportion and at what intensity (for example 70% catalogue, 25% search, 5% payment). It is built from production data: logs, analytics, peak hours; for a new system, from business estimates. An unrealistic model gives a test that measures the wrong system.

Read the topic

What are ramp-up, think time and pacing?

Ramp-up — gradually increasing the number of VUs, to avoid an artificial peak and see at which level degradation begins. Think time — a pause between user actions; without it the load is too aggressive. Pacing — a fixed interval between the starts of scenario iterations, which sets a stable rate regardless of response time.

Read the topic

What should the environment and data for a performance test be like?

As close to production as possible: the same configuration and versions, comparable resources, a realistic volume and distribution of data in the database (an empty database hides slow queries), caches, integrations or stubs with a realistic delay. Test data must be unique where the scenario requires it, and the load generator must not become the bottleneck itself.

Read the topic

How are pass criteria defined and why is there a baseline?

Criteria are measurable goals set before the run, from the SLA/SLO: for example p95 < 500 ms and error rate < 1% at 200 RPS. A baseline holds the reference results of a known version, against which each later build is compared to spot a regression. The warm-up is excluded from measurements, because cold caches and JIT distort the first minutes.

Read the topic

How do JMeter and k6 work (the basics)?

JMeter (5.x): a test plan with a Thread Group (threads, ramp-up, duration), Samplers (requests), Assertions, Timers (think time) and Listeners; the GUI is for building, big runs go in non-GUI mode (jmeter -n -t plan.jmx -l results.jtl). k6: a JavaScript script, k6 run script.js; options set vus, duration or stages and thresholds (for example p(95)<500); a crossed threshold gives a non-zero exit code and the CI step fails.

Read the topic

How do you look for a bottleneck during a performance test?

Response time is read next to resource metrics at each layer. Low application CPU and high database CPU means slow queries or indexes; low CPU everywhere plus waiting for connections means an exhausted connection or thread pool; saturated application CPU or memory means code or a lack of resources; memory growing over time means a leak. First rule out that the load generator itself is the limit.

Read the topic

What is coordinated omission?

A distortion of statistics in closed-model tests where a VU waits for a response before the next request: when the system hangs, the test sends fewer requests and does not record the waiting that would build up in reality, so the latency tail looks better. The remedy is an open model with a fixed arrival rate (the constant-arrival-rate executor in k6) or tools that correct for gaps (HdrHistogram, wrk2).

Read the topic

Practice Performance Testing with flashcards