9.1. Looking for a speed-up

Programmers have traditionally been keen on making their code run as fast as they can. Things may have changed a little over the decades but still we all carry that inner desire for our code to be a bit faster than it is. Back in the day, the rationale was obvious: the hardware set stringent requirements and constraints for any code that would be run, be it the amount of memory or registers available or the cycle with which the processor could carry out instructions.

Today, we aren’t nearly as constrained as we used to be and yet we still end up waiting for the computer to do its part. Starting off a build, we lean back and sigh, “If only I had a faster computer.” As the tests pass, one by one printing a little dot ...

Get Effective Unit Testing 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.