Skip to content
HHackerTube.videoSurprise me

CppCon 2015: Chandler Carruth "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!"

CppCon 2015: Chandler Carruth "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!" on HackerTube: recommended by 3 Hacker News commenters across 3 separate months, 2015–2020.

CppCon

talk · advanced · evergreen

Open on YouTube

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.

Why Hacker News recommends it

HN recommends it as an eye-opening primer on benchmarking and performance analysis, especially for people who have not benchmarked on Linux.

people recommended it
3
separate months
3
strong recommendations
1
discussed on HN
2015–2020
“Optimizing the Emergent Structures of C++”
— humanrebar, May 2016, in “Why I don't spend time with Modern C++ anymore”

What HN commenters said

4 Hacker News comments link this video. Each one links back to its thread.

humanrebarMay 2016Strongly recommends

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.

in “Why I don't spend time with Modern C++ anymore” · View on HN

thomashusaMar 2020Recommends

There is a very interesting talk [1] by Chandler Carruth that I stumbled upon last weekend that is very much related to this [1] ▶ this video

in “When Bloom filters don't bloom” · View on HN

kbensonOct 2015Recommends

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

in “Do you know how much your computer can do in a second?” · View on HN

misnomeAug 2019Cites it

> 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

in “Why Const Doesn't Make C Code Faster” · View on HN

Topics & tags

Software performance & optimizationC, C++, Rust, Go & systems languagesc++benchmarkingcompilerscpu performancechandler carruth