Google Benchmark for C++

This course introduces a lightweight framework for measuring performance. Create benchmarks that produce reliable, meaningful results

4.6 (393 reviews)
1
Configuring a CMake Project
Separate our core logic into libraries, configure CMake for multiple targets, and apply hardware-aware optimizations.
2
Integrating Google Benchmark
Integrate the industry-standard Google Benchmark library into a CMake project to capture nanosecond-precision timings.
3
Writing Effective Benchmarks
Fight the compiler's aggressive optimizations to ensure benchmarks measure reality.
4
Analyzing Benchmark Data
Learn to interpret CPU time, variance, and the trade-offs between insertion speed and read speed.
5
Mapping Complexity and Hardware Cliffs
Using Google Benchmark's Range and Complexity features to visualize Big O growth and identify the moment our data falls off the CPU cache cliff.
6
Amortized Costs and Crossover Points
Using benchmarks to calculate the 'break-even point' where investing in data preparation pays off.