Today I’ve been reminded of the importance of measuring first, rather than making assumptions.

I thought I’d write a post walking through it — that way at least something useful might come out of it, if it helps someone else.

Background

The last couple of days I’ve been trying to improve test running speed. It was fine to start with but the more tests I added, the longer the runs took. When it got to the point that in some sections each test was taking 600–1300ms, I got fed up enough to do something about it.

Starting point

I suspected it was probably a database thing, but thought I might as well try some basic Node profiling first to see if there was a smoking gun that would help.

#programming #javascript #nodejs

How to Improve The Speed of Your Tests
1.10 GEEK