Modern CPUs can process hundreds of billions of instructions per second, which is one of the major factors behind their blazing-fast speed. We take these speeds for granted, but rarely think about a fascinating feature called “speculative execution” that makes it all possible. Speculative execution is essentially the CPU guessing the result of a program and executing it ahead of time, boosting performance significantly.