In order to produce blazingly fast code, we need to be able to measure the impact of optimizations that we perform. This requires a method for reliably measuring the runtime of our performance-critical code. Unfortunately, modern CPUs have very unstable frequencies due to dynamic power management technologies such as Intel’s Turbo Boost. This can make it very difficult to reliably measure code performance and apply optimizations. This post will demonstrate how to stabilize the frequency of your CPU to correct this problem.