(Or perhaps better: refactor `measure` so that it's not doing three things (measuring, comparing, and reporting) in one function.)