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

Have you registered for CppCon 2016 in September? Don’t delay – Early Bird registration is open now.

While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2015 for you to enjoy. Here is today’s feature:

Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!

by Chandler Carruth

(watch on YouTube) (watch on Channel 9)

Summary of the talk:

A primary use case for C++ is low latency, low overhead, high performance code. But C++ does not give you these things for free, it gives you the tools to control these things and achieve them where needed. How do you realize this potential of the language? How do you tune your C++ code and achieve the necessary performance metrics?

This talk will walk through the process of tuning C++ code from benchmarking to performance analysis. It will focus on small scale performance problems ranging from loop kernels to data structures and algorithms. It will show you how to write benchmarks that effectively measure different aspects of performance even in the face of advanced compiler optimizations and bedeviling modern CPUs. It will also show how to analyze the performance of your benchmark, understand its behavior as well as the CPUs behavior, and use a wide array of tools available to isolate and pinpoint performance problems. The tools and some processor details will be Linux and x86 specific, but the techniques and concepts should be broadly applicable.

Add a Comment

Comments are closed.

Comments (2)

0 0

Wil Evers said on May 10, 2016 02:44 PM:

Great talk of course, but what is the point of re-posting a video that was posted before last year?

0 0

Blog Staff said on May 11, 2016 11:15 AM:

@Wil: This was from the most recent CppCon, Sep 2015. We're posting highlights from the most recent event for people who might have missed seeing them the first time.

It's also a chance to remind people of the high quality of talks they can expect again at the upcoming brand-new CppCon being held again this September, which will likely be all new talks -- we record them to make the information freely available so that we don't have to repeat. And CppCon enjoys a constant large backlog of great talk proposals that just didn't fit last year, in addition to the new ones being proposed every spring. (Speaking of which, feel free to submit a talk proposal soon -- only 11 days left in the call for submissions!)