~/lightning

Lightning Talk: Micro C++ Benchmarks & Murphy's Law

Lightningat CppCon 2024 · on Sunday, 2024-09-15· [web-performance]
links:none on file
slides:none on file

Claims concrete fixes for nanosecond-scale measurements: use rdtsc/rdtscp rather than chrono where possible, disable P-States/C-States/turbo, pin threads and fix frequency so timestamps map to cycles, add memory fences or volatile to prevent reordering, subtract loop and cache-probing overhead from results, and use perf and percentiles (99th) to spot outliers. Reports surprises like L2 reads taking ~30–40 cycles and transient frequency jumps when NUMA and cross-node coherence are involved, plus a working harness that removes many common pitfalls.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.