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

Readme

Keywords

Package Sidebar

Install

npm i smart-perf

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • puritys