awesome-everything RU
↑ Back to the climb

Performance

Profile first: multiple-choice review

Crux Multiple-choice synthesis across the profile-first unit — Amdahl ceilings, self vs cum-time, measurement scopes, the observer effect, statistical baselines, and flame-graph shape reading.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Six questions that cut across the whole unit. Each one mirrors a decision you make in a real “the service is slow” investigation — not a definition to recite, but a judgement call to defend with numbers.

Goal

Confirm you can connect the measurement loop, Amdahl’s ceiling, scope selection, the observer effect, statistical reporting, and flame-graph reading — the synthesis the individual lessons built toward.

Quiz

A profile shows your top function at 12% of total CPU. A teammate proposes a heroic rewrite that would make it 8x faster. Before approving, what is the decisive number and what does it say?

Quiz

A flame graph shows one function with cum-time 80% but self-time 2%, sitting above a single wide leaf. What is it, and where does the fix live?

Quiz

A microbenchmark says a new hash is 10x faster. You want to know if your API will get faster. Which measurement answers that honestly, and why?

Quiz

An instrumentation profiler reports a hot Java method at 40 ms/call; a sampling profiler reports 8 ms/call for the same method. Which reflects production, and what causes the gap?

Quiz

A PR claims '15% faster' from one staging run. A second engineer reruns the same code unchanged and sees a 7% swing. How do you read the original claim?

Quiz

A flame graph shows thin spikes scattered across the full width with no dominant leaf, yet p99 latency is terrible. What does the shape tell you and what do you capture next?

Recap

The unit’s through-line is one investigation: quantify the complaint, reproduce under realistic load, capture a baseline, read the SHAPE before the names, and let the numbers — not intuition — name the hotspot. Amdahl’s ceiling decides whether a fix is worth it (share beats local speedup); self vs cum-time decides where to look; scope selection and the observer effect decide which measurement to trust; statistical baselines decide whether a “win” is real; and a scattered flame graph tells you the bottleneck is off-CPU. Every wrong answer above is a real way engineers fool themselves into optimising the wrong code.

Continue the climb ↑Profile first: free-recall review
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.