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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.