A fast utility to generate timing stats for your node program.
npm install --save benchme
var benchme = ;var timer = benchme;timerstart;//do stuffvar x = timer; //returns the time elapsed for this sampletimer;//some other place in your code that manages these globallyvar benchme = ;benchme;
I made this library because I wanted a way to centrally record various timing stats in a performant (esp wrt memory) way. BenchMe only saves 5 numbers per timer. It does not save all the samples in your period length. This means you can cheaply generate timing stats for a production system with sample sizes in the 10s of thousands.
Not really appropriate for actions that take longer than 1 second with large sample sizes.