~/talk

Performance Benchmarking with Celero

Talkat CppCon 2017 · 2017-09-24..09-29· [testing, c-and-cpp]
links:none on file
slides:none on file

Small C++11 library Celero adds microbenchmarks to projects and produces CSV/JUnit/archived results for CI; it runs 10,000 samples with inner loops (example used 1,000 iterations) and enforces work with DoNotOptimizeAway. Example: a crafted baseline yields relative timings where std::to_string is about 2x slower than baseline and std::strstream about 19x slower, while a table lookup is ~0.96×. Problem spaces scale (64→4096 elements) and bubble sort baselines expose how other algorithms outperform it; outputs aim for reproducible minima.

AI-written summary · about

  1. 0:00Introduction to Celero
  2. 1:50What is Celero
  3. 2:56Microbenchmarking basics
  4. 6:10Benchmarking challenges
  5. 13:45Int to string example
  6. 19:07Writing test cases
  7. 23:02Test fixtures and baselines
  8. 27:25Problem spaces in tests
  9. 31:54Guidelines and best practices
  10. 36:14Analyzing results
  11. 38:22Continuous testing integration
  12. 42:14Future improvements
  13. 43:40Q&A
~/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.