Whenever I work on changes that require comparison, such as benchmarking, I end up with two or more build directories that provide different binary variants simultaneously. Adding these build directories to .gitignore makes the workflow a bit easier.
Additionally, a trivial refactoring is included to reduce the code.