~/talk

“Benchmarking C++ Code"

Talkat CppCon 2015 · 2015-09-21..09-25· [web-performance]
slides:none on file

Explains how to get believable C++ performance numbers: form a hypothesis, measure runtimes with std::chrono or the TSC, and report 95% confidence intervals after running many executions (pilot runs often show needing 100–400+ samples). Demonstrates pitfalls (a bimodal context‑switch timing bug), shows tooling: Boost.Accumulators gotchas for sample stddev, Google perftools for heap profiling, counting copies/moves with mock objects, and using Intel Amplifier / vectorization advisor; converts benchmarks into automated regression tests.

AI-written summary · about

  1. 0:00Intro
  2. 2:07The Problem with Performance
  3. 4:35What is Performance?
  4. 5:44Sources of Error
  5. 6:33Variance
  6. 11:33Case Study: CFD AMR Scaling
  7. 14:38Statistical Best Practices
  8. 17:12Gathering Data
  9. 20:18Uncertainty
  10. 22:57Example: Boost.Accumulators
  11. 27:29Confidence Intervals
  12. 33:21Mean-Median Test
  13. 34:19Case Study: HPX CS Overhead
  14. 36:49Time-Based Benchmarking
  15. 41:36Memory Benchmarking
  16. 42:48Example: Instrumenting operator new
  17. 43:14Counting Copies/Moves
  18. 44:37Hardware Performance Counters
  19. 46:21Intel VTune Amplifier
  20. 51:36Intel Vectorization Adviser
  21. 52:35Write Performance Tests
  22. 53:40Stateful Performance Tests
  23. 54:32Stateless Performance Tests
  24. 56:19Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.