Uploaded November 2025 | Updated September 2026, 2 weeks ago
cppcon.org
---
Why 99% of C++ Microbenchmarks Lie – and How to Write the 1% that Matter! - Kris Jusiak - CppCon 2025
---
We've all seen (or written!) benchmarks claiming "X is faster than Y" - only to discover the opposite in production. Most microbenchmarks lie by omission, focusing only on throughput and hiding critical factors like branch prediction, cache effects, and pipeline stalls behind deceptively simple numbers.
In this talk, we will explore how to avoid common microbenchmarking pitfalls by leveraging (directly from C++23):
- Hardware performance counters and processor tracing
- Machine code and top-down microarchitecture analysis
- Statistical and visualization techniques
Topics covered:
- Why "naked" performance numbers are often meaningless
- How to detect and eliminate misleading benchmarks
- How to choose the right tools
- when to benchmark, what to benchmark (latency vs. throughput), and when to stop
- How to extract actionable insights from hardware performance counters, processor traces, and machine code
We'll dissect real-world benchmarks that appear to show "optimizations" but in reality degrade performance.
The goal is to illustrate why raw performance numbers can't be trusted - and how to successfully transfer microbenchmarking insights to production code.
---
Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Performance_Is_Not_a_Number.pdf
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Kris Jusiak
Nanosecond count
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
cppcon.org
---
Why 99% of C++ Microbenchmarks Lie – and How to Write the 1% that Matter! - Kris Jusiak - CppCon 2025
---
We've all seen (or written!) benchmarks claiming "X is faster than Y" - only to discover the opposite in production. Most microbenchmarks lie by omission, focusing only on throughput and hiding critical factors like branch prediction, cache effects, and pipeline stalls behind deceptively simple numbers.
In this talk, we will explore how to avoid common microbenchmarking pitfalls by leveraging (directly from C++23):
- Hardware performance counters and processor tracing
- Machine code and top-down microarchitecture analysis
- Statistical and visualization techniques
Topics covered:
- Why "naked" performance numbers are often meaningless
- How to detect and eliminate misleading benchmarks
- How to choose the right tools
- when to benchmark, what to benchmark (latency vs. throughput), and when to stop
- How to extract actionable insights from hardware performance counters, processor traces, and machine code
We'll dissect real-world benchmarks that appear to show "optimizations" but in reality degrade performance.
The goal is to illustrate why raw performance numbers can't be trusted - and how to successfully transfer microbenchmarking insights to production code.
---
Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Performance_Is_Not_a_Number.pdf
Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---
Kris Jusiak
Nanosecond count
---
CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---
Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---
#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer










