⏱️ Latency: A Practical Guide in C++
Home Chapters Examples Lab Setup Diagrams Bibliography GitHub ↗
Home / Measuring Latency
Part 1 4 chapters

Measuring Latency

Establish the running example and the harness, then learn to read a latency distribution and set a budget before touching any code.

Overview

Outline

The twelve chapters of v1, the running example, and what each one measures.

Read →
Chapter 0

The running example and the harness

The parcel sortation line, the scan-to-divert metric, and the measurement harness every later chapter reuses.

20 minutesRead →
Chapter 1

Latency as a distribution

Why a mean misrepresents scan-to-divert under load, and why coordinated omission is physical on this belt, not a definition to memorize.

25 minutesRead →
Chapter 2

The latency budget

Little's Law and Amdahl's Law as planning tools, the six sources of latency on this line, and the first measured per-stage decomposition of the scan-to-divert budget.

25 minutesRead →
Next part → Eliminating Work

Latency: A Practical Guide in C++

A chapter-based guide to latency engineering in C++23, one pattern per chapter, measured on a parcel sortation line.

Tutorial

  • Chapters
  • Examples
  • Diagrams
  • Bibliography

Reference

  • cppreference.com ↗
  • View on GitHub ↗
  • Issues ↗
Open source · Apache 2.0 (code) / CC BY 4.0 (docs) Last built 2026-11-30