Skip to content
George Sorial

Software · Systems · [TODO year]

Low-latency benchmark suite

A C++ benchmark suite comparing a mutex queue baseline with a lock-free SPSC ring buffer, with contention benchmarks and a false-sharing and cache-line layout study, profiled with perf and flamegraphs.

Placeholder diagram of a ring buffer with producer and consumer indices.
  • C++
  • Atomics
  • perf

Problem

[TODO]

Approach

A mutex-protected queue serves as the baseline against a lock-free single-producer / single-consumer ring buffer.

Contention benchmarks, plus a false-sharing and cache-line layout study, profiled with perf and flamegraphs.

Results

Mutex queue baseline
[TODO]
Lock-free SPSC ring
[TODO]
Speed-up
[TODO]

[TODO: headline numbers and what the profiling showed]

What I’d do next

  • [TODO]