
Understanding the CPU as a black box

Why performant code matters (but gets widely ignored), with Casey Muratori
Topic 9 of 18
Published Aug 26, 2026 · Clip 49:03–53:52 (4:49)
Casey explains that the CPU knowledge (not assembly per se) is the important part: modern CPUs are undocumented black boxes but can be understood at three levels — data movement (load/store, cache levels L0–L3, granularity and policy), instruction flow (branch misprediction, I-cache misses, branch prediction), and execution unit scheduling (throughput of multiply/add/divide). This lets you read vendor flowcharts to gauge machine performance. He also notes the craftsmanship satisfaction of knowing what's happening and the percentage game: if library maintainers care about performance, everyone's code gets faster.