Natural Preference for Minification

npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

smart-perf

1.0.1 • Public • Published
  • npm install -g smart-perf
var smartPerf = require("smart-perf");
smartPerf.start("Linear search");
run_linear_search();
smartPerf.end(false);

smartPerf.start("Binary search");
run_binary_search();
smartPerf.end(false);

smartPerf.print();

The sample result:

Key            CPU(ms)
-------------  -------
Linear search  207 ms
Binary search  129 ms

install

npm i smart-perf

Downloadsweekly downloads

0

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability