TDD and Performance

Acceptable performance is an important requirement in any system. It’s also likely that many of you are programming in C++ expressly because of its potential for high performance. Throughout the book I’ve dismissed concerns about performance and directed you to read this section, but that’s not because performance isn’t important. It is.

Most of what falls under the umbrella of performance testing is neither TDD nor unit testing. This section presents a test-focused strategy for performance optimization and then discusses how unit-level testing can help you execute that strategy. It also discusses how design and performance relate, emphasizing that you should seek optimal design before you attempt to address performance concerns. ...

Get Modern C++ Programming with Test-Driven Development 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.