Profiling: Establishing a baseline

When we do optimizations and refactoring we want meassure the effect of the changes that we do. There can be many ways of doing it, ranging from using a stopwatch to record the execution time to using sophisticated tools to measure performance. The approach I describe here is somewhat in the middle. It requires some manual work comparing and judging results and utilises automation to obtain the data to compare. While working my way through the book: C++ Design Patterns and Derivatives Pricing, I needed to establish a performance baseline to compare the different implementation. A nice implementation should not…
Read more →