1.0.0 • Published 7 years ago
opsec v1.0.0
Quickly run some benchmarks from the CLI. Supports requiring dependencies and uses benchmark.js internally.
Installation
npm install benchmark-cli
Examples
Single file
$ benchmark ./test/example1.js
✔ ./test/example1.js x 74,792 ops/sec ±2.63% (81 runs sampled)
Glob of files
$ benchmark ./test/*.js
✔ ./test/example1.js x 74,792 ops/sec ±2.63% (81 runs sampled)
✔ ./test/example2.js x 1,440,522 ops/sec ±2.76% (78 runs sampled)
Evaluate directly
$ benchmark -e "for (var i = 1000; i--;);"
✔ evaluate x 213,961 ops/sec ±0.75% (88 runs sampled)
Contributions
Please feel free to create a PR!
1.0.0
7 years ago