Introduction to Benchmarking
Let's get familiar with the idea of benchmarking.
We'll cover the following...
Overview of benchmarking
What does it mean to benchmark ones code? The main idea behind benchmarking or profiling is to figure out how fast our code executes and where the bottlenecks are. The main reason to do this sort of thing is for optimization. We will run into situations where we need our code to run faster because our business needs have been changed. When this happens, we will need to figure out what parts of our code are slowing it down.
This chapter will only cover how to profile our code using a variety of tools. It will not go into actually optimizing our code. Let’s get started! ...