Benchmark utility for nodejs
To install
$ npm install nbm
Usage
Initialize new benchmark object.
var nbm = require;var benchmark =
You can add precision (qty of decimals)
var benchmark = nbm.benchmark;
Place start() at the top of the script.
benchmark.start;
Place end() at the bottom of the script, or for async functions in the callback.
benchmark.end; // async
Example
var nbm = require; var benchmark = nbm.benchmark; // Simple example// Place benchmark.start;