Performance Engineering · Workspace
Resources
Blogs, books, tools and channels worth your time after a lesson. Each one goes further on something this course teaches.
Blogs16
Engineers writing up what they measured, what they found and what finally made it faster.
- Brendan GreggThe source for flame graphs, the USE method and Linux performance analysis, by the person who popularised them. (opens in a new tab)
Julia EvansFriendly explanations of strace, perf, networking and other tools for finding out what a program is doing. (opens in a new tab)
Daniel LemireShort, benchmarked posts on making code faster with SIMD, better algorithms and a feel for the CPU. (opens in a new tab)
EasyperfDenis Bakhvalov on CPU performance analysis, compilers and how to read profiler output. (opens in a new tab)- Dan LuuLong, data-heavy essays on latency, tail latency and why systems are slower than they should be. (opens in a new tab)
- Marc BrookerAn AWS distinguished engineer on queueing, caching, tail latency and the maths of distributed systems. (opens in a new tab)
- Aleksey ShipilëvJVM internals, garbage collectors and benchmarking pitfalls from an OpenJDK performance engineer. (opens in a new tab)
Random ASCIIBruce Dawson’s tracking down of slow builds, stalls and odd CPU behaviour with real traces. (opens in a new tab)
LWN.netWeekly coverage of Linux kernel development, including schedulers, memory management and tracing. (opens in a new tab)
Use the Index, LukeA free guide to how SQL indexes work and why queries are slow, with examples across databases. (opens in a new tab)
Percona BlogBenchmarks and tuning advice for MySQL, PostgreSQL and MongoDB from a database consultancy. (opens in a new tab)
Cloudflare BlogPerformance investigations down to the CPU cache, the kernel and the packet. (opens in a new tab)
Netflix Tech BlogProfiling, JVM tuning and capacity work from a team that studies its fleet closely. (opens in a new tab)
Datadog EngineeringMaking high-volume telemetry pipelines fast, with the profiles and benchmarks behind each change. (opens in a new tab)
Uber EngineeringCost and latency work at scale, including garbage collection tuning and efficiency programmes. (opens in a new tab)
Meta EngineeringPosts on profiling at fleet scale, kernel work and performance regressions. (opens in a new tab)
Books10
For when you want the whole picture, not one article.
- Systems PerformanceThe standard book on analysing CPUs, memory, disks and networks, built around a method rather than a tool list. (opens in a new tab)
- BPF Performance ToolsHow to use eBPF and bpftrace to see inside a running Linux system without changing it. (opens in a new tab)
- Performance Analysis and Tuning on Modern CPUsHow to find and fix bottlenecks using the CPU’s own counters. The PDF is free. (opens in a new tab)
- Algorithms for Modern HardwareA free online book on caches, SIMD, branch prediction and other ways to make code fit the hardware. (opens in a new tab)
- Computer Systems: A Programmer’s PerspectiveHow programs map onto hardware, memory and the operating system, which is where performance questions begin. (opens in a new tab)
- Is Parallel Programming Hard, And, If So, What Can You Do About It?A free book on locking, memory ordering and RCU, from one of the Linux kernel’s concurrency maintainers. (opens in a new tab)
- The Art of Multiprocessor ProgrammingThe theory and practice of locks, lock-free data structures and concurrent algorithms. (opens in a new tab)
- SQL Performance ExplainedA short book on how indexes and execution plans decide whether a query is fast. (opens in a new tab)
- Designing Data-Intensive ApplicationsCovers storage engines, replication and partitioning, the trade-offs behind database and distributed performance. (opens in a new tab)
- Optimizing software in C++A free manual on compilers, caches and branches, with advice for writing fast C++. (opens in a new tab)
Tools17
What you reach for to measure, profile and load-test. Their docs are some of the best free teaching there is.
perfThe Linux profiler that samples CPU stacks and reads hardware counters such as cache misses. (opens in a new tab)
bpftraceA one-liner language for tracing a running Linux system with eBPF, with almost no overhead. (opens in a new tab)- FlameGraphThe original scripts that turn sampled stacks into a flame graph. (opens in a new tab)
speedscopeOpens profiles from many languages in one interactive flame graph viewer, right in the browser. (opens in a new tab)- async-profilerA low-overhead sampling profiler for Java that covers CPU, allocation and lock time. (opens in a new tab)
- py-spySamples a running Python program from outside, so you can profile production without a restart. (opens in a new tab)
Grafana PyroscopeStores profiles over time so you can compare a slow deploy against the last good one. (opens in a new tab)
Go pprofGo’s built-in profiler for CPU and memory; this post shows how to read its output. (opens in a new tab)- hyperfineRuns command-line programs repeatedly and reports mean, spread and outliers. (opens in a new tab)
Google BenchmarkA C++ library for microbenchmarks that handles warm-up, iteration counts and statistics. (opens in a new tab)- JMHThe OpenJDK harness for Java benchmarks that avoids the JIT and dead-code traps. (opens in a new tab)
Grafana k6Load tests written in JavaScript, with thresholds that fail a run when latency slips. (opens in a new tab)
LocustDefines user behaviour in Python and generates load from many machines. (opens in a new tab)
PerfettoA trace recorder and viewer with a SQL interface for system, app and browser traces. (opens in a new tab)
Compiler ExplorerShows the machine code a compiler produces for your source, side by side, across many compilers. (opens in a new tab)
explain.dalibo.comTurns a PostgreSQL EXPLAIN plan into a diagram that highlights the slow nodes. (opens in a new tab)
OpenTelemetryA vendor-neutral way to collect traces, metrics and logs from a service in production. (opens in a new tab)
Channels6
Talks and walkthroughs, for when you’d rather watch someone find the bottleneck.
CppConYouTubeConference talks on benchmarking, cache-friendly design and low-latency C++. (opens in a new tab)
Molly RocketYouTubeCasey Muratori on performance-aware programming, including a course on how CPUs run code. (opens in a new tab)
Jon GjengsetYouTubeLong live-coded sessions on Rust, concurrency and systems internals. (opens in a new tab)
ComputerphileYouTubeShort university-style explainers on CPUs, caches, memory and operating systems. (opens in a new tab)
Core DumpedYouTubeAnimated explanations of how processes, threads and the CPU work underneath your code. (opens in a new tab)
Hussein NasserYouTubeBackend engineering from the ground up, including database internals, proxies and network latency. (opens in a new tab)