Hands-On High Performance Programming with Qt 5
上QQ阅读APP看书,第一时间看更新

Benchmarks in regression testing

If you are using continuous integration for your project, you could set up a suite of performance tests that must pass before the newest code change can be accepted, thus introducing a bit of performance culture to your project. I have seen such tests in real-world projects, and I must say that they can sometimes be a mixed blessing. The reason is that they can fail when the build server is overloaded, so an extra bit of caution is needed here. Admittedly, it is border territory between testing and profiling, but as it's an important technique, it doesn't do any harm to mention it twice.