humanrebaron Hacker News • Recommends
On “Why I don't spend time with Modern C++ anymore”
#c++#benchmarking#compileroptimization
189K subscribers • 103 videos on Hallway • Conference channel
Intermediate. Assumes working knowledge.
188K views11 years ago4 recommendations
Systems programmingProgramming languagesC++Performance and optimizationCompilers and interpreters
Chandler Carruth explains how to write effective C++ benchmarks and analyze performance without compiler optimizations getting in the way.
Cppcon.org — 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. -- Chandler Carruth leads the Clang team at Google, building better diagnostics, tools, and more. Previously, he worked on several pieces of Google’s distributed build system. He makes guest appearances helping to maintain a few core C++ libraries across Google’s codebase, and is active in the LLVM and Clang open source communities. He received his M.S. and B.S. in Computer Science from Wake Forest University, but disavows all knowledge of the contents of his Master’s thesis. He is regularly found drinking Cherry Coke Zero in the daytime and pontificating over a single malt scotch in the evening. -- Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctfWhat people say. Recommended as an eye-opening guide to benchmarking C++ and understanding how compilers optimize or eliminate benchmark code.
humanrebaron Hacker News • Recommends
On “Why I don't spend time with Modern C++ anymore”
programming-talkscurated list on GitHubRecommends
Under “C++”
kbensonon Hacker News • Recommends
On “Do you know how much your computer can do in a second?”
thomashusaon Hacker News • Recommends
On “When Bloom filters don't bloom”
Chandler Carruthon Stack Overflow • Mentions
On “Enforcing statement order in C++”
u/camel-cdrin r/C_Programming • Mentions
On “A C Standard Library”
u/__n2tin r/C_Programming • Mentions
On “Trying to understand cache effects for reading and writing into arrays”
u/bgs11235in r/ProgrammingLanguages • Mentions
u/skeetoin r/C_Programming • Mentions
On “Why is there no C conference?”
P. Mattioneon Stack Overflow • Mentions
u/camel-cdrin r/C_Programming • Mentions
On “How to Properly Benchmark C Code”
misnomeon Hacker News • Mentions
On “Why Const Doesn't Make C Code Faster”
u/raoul15978in r/C_Programming • Mentions
On “[C Learning] How to measure efficiency of programs?”
u/DownloadRedditin r/C_Programming • Mentions
On “How do I go about finding performance cost of inbuilt c functions?”
u/ventuspilotin r/C_Programming • Mentions
On “What do people here usually do for benchmarking code? (rdtsc? clock_getime? QPC? etc.)”
u/camel-cdrin r/C_Programming • Mentions
On “How to properly validate a code profiler?”