3 HN users recommended this talk3 months2015–2020score 3.5
Years with an HN recommendation, 2007–2026
HN recommends it as an eye-opening primer on benchmarking and performance analysis, especially for people who have not benchmarked on Linux.
Chandler Carruth walks through tuning C++ performance, from writing benchmarks to analyzing results on real CPUs and compilers. It focuses on small-scale problems such as loop kernels, data structures and algorithms, and on keeping compilers from optimizing benchmarks away.
“Optimizing the Emergent Structures of C++” (HN, 2016)
Here's a few: - "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!" [this video] - "Understanding Compiler Optimization" [link] - "Optimizing the Emergent Structures of C++" [link] - "Efficiency with Algorithms" [link] The first one is really good if you've never benchmarked anything in a Linux environment. Or if you otherwise want to learn how to investigate how C++ gets turned into machine code.
Teaches benchmarking on Linux and how C++ becomes machine code.
Interestingly, there's quite a bit that's needed to ensure you bypass some compiler optimizations. Here's an ey-opening (for me) talk[1] on benchmarking C++ and compilers which touched on it. 1: [this video]
Eye-opening talk on benchmarking C++ and bypassing compiler optimizations.
> Anecdote: Optimum C blew away all the other C compilers on a magazine benchmark article because it figured out that the benchmark code did nothing and deleted it. I remember this problem being discussed in a CPPCon talk a few years ago, and some ways to "trick" the (modern) compilers into not optimising away the benchmark code - I think it was Chandler Carruth's "Tuning C++" talk: [this video]
Talk on benchmarking pitfalls and stopping compilers optimizing benchmark code away
Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.
4 Hacker News comments
From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.
Citations, criticism and jokes