Performance analysis and bottlenecks
Find the one slow part that limits a whole system, using percentiles, queues and resource readings instead of guesses.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a queue at a shop where only one till is open. The shop has ten tills, but only one is staffed. It does not matter how fast the shelves are stocked or how many doors there are. The one open till decides how fast everyone gets through.
Daily List is a to-do list app. Mei runs a and sees something odd. Up to 80 users, the app keeps up. Past 80 users, it does not do any more work. It just makes everyone wait longer.
Tom has to find the one slow part. He looks at each part in turn: the web server, the database, the disk and the network. One of them is nearly full. The rest are quiet.
This is performance analysis: reading the numbers from a test to find the part that limits the whole system.
The picture has a limit. A shop has one kind of queue. A system has many, and fixing one can reveal the next.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Investigating workload-specific limits with resource, queue and trace evidence, then changing one factor at a time.
- Spot the plateau
- Read each resource
- Name the full part
- Change one thing
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The one open till | The bottleneck |
| The line of shoppers | The queue of waiting requests |
| The busy till | A resource at full use |
| Opening a second till | A fix for the slow part |
WHERE THIS PICTURE STOPS
- A shop has one queue. A system has many.
- Shoppers can see the queue. Testers need numbers.
- Opening another till helps at once. Fixing code takes work.
HOOK
Find the full part, then fix one thing.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
If more users add waiting but no extra work, find the one nearly full part first.
| In the trick | What it stands for |
|---|---|
| More users, same work | past a point the app does not do more work |
| Nearly full part | one part is nearly full and the rest are quiet |
Two parts can be near full at once, so fix one and measure again.
TELL A FRIEND
A shop with ten tills and only one staffed. The open till decides the speed, so you find it and fix that one.
OFTEN MIXED UP WITH Performance test design. The design lesson plans the load. This lesson reads what the load revealed.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
Site Reliability Engineering: How Google Runs Production Systems — "Monitoring Distributed Systems" ↗ — Google (Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy, eds.) · Latency distributions are skewed, so percentiles describe users better than averages; the four golden signals are latency, traffic, errors and saturation (search excerpt, page not opened)
Freely published in full by Google at sre.google — not a paywalled or excerpted source. Verification boundary: sre.google answers a network egress block through this environment's proxy, so the chapter's argument was confirmed via search summarisation of its publicly indexed content rather than a direct fetch of the page. 2026-10-11: confirmed by search excerpts from sre.google (page not opened): the four golden signals. Timing failed requests separately. Explicit, implicit and policy-based errors. Saturation and the 99th-percentile early signal. 'spend much more effort on symptoms than causes' and 'only worry about very definite, very imminent causes'.
6 November 2026: opened primary chapter, especially The Four Golden Signals and Worrying About Your Tail. Inspected latency of successful versus failed requests, errors, traffic, saturation and percentile monitoring. This does not establish a deployed payment-system SLA.
8 November 2026: primary Chapter 6 Definitions, Why Monitor, Symptoms Versus Causes, Black-Box Versus White-Box, Four Golden Signals and tail discussion opened; selected coverage, actionable alerts and separate success/error latency. Historical practice, not a universal detection guarantee.
- Market practice
The utilization, saturation and errors (USE) Method (Brendan Gregg) ↗ — Brendan Gregg · For every resource check utilization, saturation and errors; saturation is often a queue length (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Percentiles vs averages (ClickHouse engineering resources) ↗ — ClickHouse · Averaging percentiles from several servers gives a number that is not the percentile of anything (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Why p99 latency matters and how to measure it in load testing (RadView blog) ↗ — RadView · Why the 99th percentile latency matters in load testing (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.