Performance Tip of the Week #75: How to microbenchmark
▻https://abseil.io/fast/75
Originally posted as Fast TotW #75 on September 29, 2023
By Chris Kennelly
Updated 2023-11-10
Quicklink: abseil.io/fast/75
Imagine having access to two Oracles. One gives 90% accurate predictions and responds in 10 minutes and one that gives 99% accurate predictions and responds in 1 month. With access to these secret seers, which will let us be best able to make good decisions?
“Production is ultimately what matters” might obviate the need for microbenchmarks altogether, but they are a useful tool in the performance optimization toolbox. While reduced fidelity doesn’t sound desirable at face value, it comes with an important tradeoff: speed.
In this episode, we discuss techniques for using microbenchmarks as an important tool for decision-making. Full documentation for the (...)