Why do we need a benchmark?

As you advance with your programming skills, you will start to implement more efficient programs. You will search dozens of code repositories to see how others are solving similar problems, and you will find those rare gems that will amaze you.

Throughout this progress of writing better software and implementing systems, you will need ways to measure and track the rate of improvement. You will generally consider your starting point as a baseline and see how the improvements you make will add up to performance metrics.

Once you set the baseline, you will benchmark several different implementations and will have a chance to compare these in terms of the performance metrics you choose. You can choose various metrics ...

Get Mastering Numerical Computing with NumPy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.