Marky, by Nolan Lawson:
performance.measure(), providing high-resolution timings as well as nice Dev Tools visualizations.
For browsers that don’t support performance.mark(), it falls back to
Date.now(). In Node, it uses
The greatest win to me is the visualization in the Dev Tools timeline.
After installing it with
npm install marky use its
stop() methods to time your stuff:
var marky = require('marky'); marky.mark('expensive operation'); doExpensiveOperation(); marky.stop('expensive operation');