Performance Engineering roadmap

Seventeen modules, from what latency really means to profiling the Linux kernel. Pick the route that fits the job you want, then follow the map.

7 parts · 17 modules · 188 lessons · Lessons being written

Lessons being written

The roadmap shows the full outline. Lessons open here as they’re published.

Course overview

  1. Foundations

    2 modules · 22 lessons
    1. Module 01: Performance engineering fundamentals

      Explain latency, throughput and utilization, why busy systems slow down, and set performance goals.10 lessons
      1. Introduction to performance engineeringNext on your pathDoneConcept · Beginner · Not yet open
      2. Why performance matters: users, costs and scaleNext on your pathDoneConcept · Beginner · Not yet open
      3. Performance engineering roles: what the job involvesNext on your pathDoneConcept · Beginner · Not yet open
      4. Latency, throughput and utilization: the core ideasNext on your pathDoneConcept · Beginner · Not yet open
      5. Queueing basics: why systems slow down when busyNext on your pathDoneConcept · Beginner · Not yet open
      See all 10 lessons
    2. Module 02: How computers run code: CPU, memory and the OS

      Describe what the CPU, memory, operating system and network do when code runs, and what each costs.12 lessons
      1. CPU basics: instructions, cycles and clock speedNext on your pathDoneConcept · Beginner · Not yet open
      2. Pipelines, branches and speculative executionNext on your pathDoneConcept · Intermediate · Not yet open
      3. The memory hierarchy: from registers to diskNext on your pathDoneConcept · Beginner · Not yet open
      4. Virtual memory and page faultsNext on your pathDoneConcept · Intermediate · Not yet open
      5. Processes, threads and context switchesNext on your pathDoneConcept · Beginner · Not yet open
      See all 12 lessons
  2. Measuring performance

    3 modules · 33 lessons
    1. Module 03: Performance principles and methodology

      Investigate a slow system with a method (USE, RED, percentiles) instead of guessing.11 lessons
      1. Measuring latency: what to time and whereNext on your pathDoneConcept · Beginner · Not yet open
      2. Throughput and utilization in practiceNext on your pathDoneConcept · Beginner · Not yet open
      3. Percentiles and tail latencyNext on your pathDoneConcept · Intermediate · Not yet open
      4. The USE method: utilization, saturation and errorsNext on your pathDoneConcept · Intermediate · Not yet open
      5. The RED method for servicesNext on your pathDoneConcept · Intermediate · Not yet open
      See all 11 lessons
    2. Module 04: Benchmarking

      Write benchmarks in Java, Go and Python that give honest answers, and gate regressions in CI.10 lessons
      1. Benchmarking: measuring performance fairlyNext on your pathDoneConcept · Beginner · Not yet open
      2. Microbenchmarks: traps that give wrong answersNext on your pathDoneConcept · Intermediate · Not yet open
      3. Benchmarking Java code with JMHNext on your pathDoneConcept · Intermediate · Not yet open
      4. Benchmarking Go code with testing.BNext on your pathDoneConcept · Intermediate · Not yet open
      5. Benchmarking Python code with pyperfNext on your pathDoneConcept · Intermediate · Not yet open
      See all 10 lessons
    3. Module 05: Profiling

      Find where time goes with flame graphs, CPU, memory, off-CPU and lock profiles.12 lessons
      1. Profiling: finding where the time goesNext on your pathDoneConcept · Beginner · Not yet open
      2. Sampling and instrumenting profilersNext on your pathDoneConcept · Intermediate · Not yet open
      3. Flame graphs: seeing where CPU time goesNext on your pathDoneConcept · Beginner · Not yet open
      4. Profiling Java with async-profiler and JFRNext on your pathDoneConcept · Intermediate · Not yet open
      5. Profiling Go with pprofNext on your pathDoneConcept · Intermediate · Not yet open
      See all 12 lessons
  3. Code and runtime performance

    3 modules · 35 lessons
    1. Module 06: Code optimization

      Make hot code do less work: better algorithms, fewer allocations, cheaper I/O.12 lessons
      1. Algorithms first: complexity on real dataNext on your pathDoneConcept · Beginner · Not yet open
      2. Data structures and memory layoutNext on your pathDoneConcept · Intermediate · Not yet open
      3. Memory allocation: the hidden cost in hot codeNext on your pathDoneConcept · Intermediate · Not yet open
      4. Reducing allocations: pools, reuse and arenasNext on your pathDoneConcept · Intermediate · Not yet open
      5. Strings, serialization and copying costsNext on your pathDoneConcept · Intermediate · Not yet open
      See all 12 lessons
    2. Module 07: Garbage collection and runtimes

      Tune garbage collectors and runtimes in Java, Go and Python, and find memory leaks.11 lessons
      1. Memory management: manual, counted and tracedNext on your pathDoneConcept · Beginner · Not yet open
      2. How garbage collectors workNext on your pathDoneConcept · Intermediate · Not yet open
      3. Java garbage collectors: G1 and ZGC in practiceNext on your pathDoneConcept · Intermediate · Not yet open
      4. Go’s garbage collector and GOGCNext on your pathDoneConcept · Intermediate · Not yet open
      5. Python memory: reference counting and the GILNext on your pathDoneConcept · Intermediate · Not yet open
      See all 11 lessons
    3. Module 08: Concurrency and async performance

      Size thread pools, use event loops and async code well, and measure contention.12 lessons
      1. Thread pools: sizing them for the workloadNext on your pathDoneConcept · Intermediate · Not yet open
      2. Event loops: one thread, many connectionsNext on your pathDoneConcept · Intermediate · Not yet open
      3. Async Python with asyncioNext on your pathDoneConcept · Intermediate · Not yet open
      4. Goroutines and the Go schedulerNext on your pathDoneConcept · Intermediate · Not yet open
      5. Java virtual threads in practiceNext on your pathDoneConcept · Intermediate · Not yet open
      See all 12 lessons
  4. Data and distributed performance

    2 modules · 24 lessons
    1. Module 09: Database and storage performance

      Diagnose slow queries, connection pools, locks and disk I/O in production.12 lessons
      1. Database performance: where the time goesNext on your pathDoneConcept · Beginner · Not yet open
      2. Finding slow queries in productionNext on your pathDoneConcept · Intermediate · Not yet open
      3. Indexes in practice: when they help and hurtNext on your pathDoneConcept · Intermediate · Not yet open
      4. N+1 queries and other ORM trapsNext on your pathDoneConcept · Intermediate · Not yet open
      5. Connection pools: sizing and wait timeNext on your pathDoneConcept · Intermediate · Not yet open
      See all 12 lessons
    2. Module 10: Distributed systems performance

      Find where latency goes between services: RPCs, fan-out, retries and coordination.12 lessons
      1. Network latency: where the milliseconds goNext on your pathDoneConcept · Beginner · Not yet open
      2. RPC overhead: serialization, connections and hopsNext on your pathDoneConcept · Intermediate · Not yet open
      3. HTTP/2, gRPC and connection reuseNext on your pathDoneConcept · Intermediate · Not yet open
      4. Fan-out: how tail latency multipliesNext on your pathDoneConcept · Intermediate · Not yet open
      5. Contention across servicesNext on your pathDoneConcept · Intermediate · Not yet open
      See all 12 lessons
  5. Performance at scale and in production

    2 modules · 27 lessons
    1. Module 11: Load and stress testing

      Design realistic load, stress, soak and spike tests, and read their results correctly.13 lessons
      1. Load testing: why, when and what to measureNext on your pathDoneConcept · Beginner · Not yet open
      2. Workload models: describing realistic trafficNext on your pathDoneConcept · Intermediate · Not yet open
      3. JMeter: the most widely used load testing toolNext on your pathDoneConcept · Beginner · Not yet open
      4. k6, Gatling, Locust and LoadRunner comparedNext on your pathDoneConcept · Intermediate · Not yet open
      5. Coordinated omission: why load tests lieNext on your pathDoneConcept · Intermediate · Not yet open
      See all 13 lessons
    2. Module 12: Production performance

      Measure p95 and p99 correctly, use APM and tracing, and plan capacity from real data.14 lessons
      1. Performance signals: what to watch in productionNext on your pathDoneConcept · Beginner · Not yet open
      2. APM tools: what they show and how to use themNext on your pathDoneConcept · Beginner · Not yet open
      3. Distributed tracing: finding the slow spanNext on your pathDoneConcept · Intermediate · Not yet open
      4. Measuring p95 and p99 correctlyNext on your pathDoneConcept · Intermediate · Not yet open
      5. Histograms: why averaging percentiles is wrongNext on your pathDoneConcept · Intermediate · Not yet open
      See all 14 lessons
  6. Advanced performance

    3 modules · 30 lessons
    1. Module 13: CPU caches and memory performance

      Write cache-friendly code and find CPU bottlenecks with hardware counters.10 lessons
      1. CPU caches: lines, levels and missesNext on your pathDoneConcept · Intermediate · Not yet open
      2. Data-oriented design: cache-friendly codeNext on your pathDoneConcept · Advanced · Not yet open
      3. False sharing: when threads fight over a cache lineNext on your pathDoneConcept · Advanced · Not yet open
      4. Prefetching and memory access patternsNext on your pathDoneConcept · Advanced · Not yet open
      5. Branch prediction and branchless codeNext on your pathDoneConcept · Advanced · Not yet open
      See all 10 lessons
    2. Module 14: Multicore and lock-free programming

      Scale across cores and write correct lock-free code with atomics and memory ordering.10 lessons
      1. Multicore scaling: why more cores don’t always helpNext on your pathDoneConcept · Intermediate · Not yet open
      2. Memory models: what each thread can seeNext on your pathDoneConcept · Advanced · Not yet open
      3. Atomics and memory orderingNext on your pathDoneConcept · Advanced · Not yet open
      4. Lock-free data structuresNext on your pathDoneConcept · Advanced · Not yet open
      5. Wait-free algorithms and the ABA problemNext on your pathDoneConcept · Advanced · Not yet open
      See all 10 lessons
    3. Module 15: Kernel-level profiling and high-performance networking

      Profile the kernel with perf and eBPF, and tune the Linux network stack.10 lessons
      1. Kernel-level profiling with perfNext on your pathDoneConcept · Advanced · Not yet open
      2. eBPF: safe programs inside the kernelNext on your pathDoneConcept · Intermediate · Not yet open
      3. eBPF tools: bcc and bpftraceNext on your pathDoneConcept · Advanced · Not yet open
      4. Tracing system calls and scheduler delaysNext on your pathDoneConcept · Advanced · Not yet open
      5. The Linux network stack and its costsNext on your pathDoneConcept · Advanced · Not yet open
      See all 10 lessons
  7. Capstone and interviews

    2 modules · 17 lessons
    1. Module 16: Capstone: build, benchmark and optimize

      Build an application, benchmark it, fix its bottlenecks and prove the gains under load.9 lessons
      1. Capstone overview: build, benchmark, optimizeNext on your pathDoneWalkthrough · Intermediate · Not yet open
      2. Capstone step 1: building the applicationNext on your pathDoneWalkthrough · Intermediate · Not yet open
      3. Capstone step 2: baseline benchmarksNext on your pathDoneWalkthrough · Intermediate · Not yet open
      4. Capstone step 3: profiling under loadNext on your pathDoneWalkthrough · Intermediate · Not yet open
      5. Capstone step 4: code and runtime fixesNext on your pathDoneWalkthrough · Advanced · Not yet open
      See all 9 lessons
    2. Module 17: Performance engineering interviews

      Prepare for performance testing and systems performance interviews.8 lessons
      1. Performance engineering interviews: what’s testedNext on your pathDoneConcept · Beginner · Not yet open
      2. Explaining latency and throughput clearlyNext on your pathDoneConcept · Beginner · Not yet open
      3. Debugging interviews: a service is slowNext on your pathDoneConcept · Intermediate · Not yet open
      4. Estimation and capacity interview questionsNext on your pathDoneConcept · Intermediate · Not yet open
      5. Low-level questions: caches, threads and GCNext on your pathDoneConcept · Advanced · Not yet open
      See all 8 lessons

Your first senior-level
lesson is free.

Choose a course, open a free lesson, and explore an idea you’ve wanted to understand.