23.1 Introduction
“Before you can make your code faster, you first need to figure out what’s making it slow.”

Figure 23.1: SLOW DOWN TO LEARN HOW TO CODE FASTER | credits: packtpub.com
- profile your code: measure the run-time of each line of code using realistic inputs
- experiment with alternatives to find faster code
- microbenchmark to measure the difference in performance.