-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
To effectively improve the performance of your code, you must start by measuring how it performs. Without knowing where the actual bottlenecks are, you will end up optimizing the wrong places, losing time, and being surprised and frustrated that your hard work gave little to no gains. In this section, we’ll show how to properly measure performance using benchmarks, how to successfully profile your code, and how to gain insights into performance in distributed systems. But first, we’ll look at how to prepare your environment for accurate and repeatable performance measurements, followed by an overview of the three approaches mentioned.
For accurate and repeatable measurements, you might want to put your machine into performance mode instead of the usual default power-saving one. Power-saving modes extend battery life by reducing processor performance and inevitably affect the...