包详细信息

bench-it

tschaub40MIT0.4.0

Benchmark your code

benchmark, bench, test, time

自述文件

bench-it

Simple benchmark runner.

Install

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