Benchmark your code

npm install bench-it
2 downloads in the last day
11 downloads in the last week
37 downloads in the last month


Simple benchmark runner.


Install with npm.

npm install -g bench-it

Create a module with a function to benchmark

A benchmark is a module that exports a test function.

Example simple.js benchmark:

exports.test = function() {
  // function to benchmark

Establish a benchmark

bench simple.js
npm loves you