https://github.com/jamen/bench
Better defaults for Benchmark.js.
https://github.com/jamen/bench
Last synced: 11 months ago
JSON representation
Better defaults for Benchmark.js.
- Host: GitHub
- URL: https://github.com/jamen/bench
- Owner: jamen
- License: mit
- Created: 2019-04-27T17:42:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T23:01:55.000Z (about 7 years ago)
- Last Synced: 2025-04-02T10:44:37.339Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.03 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# @jamen/bench
A [benchmark.js][benchmark.js] reporter.

## Usage
### `benchmark()`
Creates a `Benchmark.Suite` that does the reporting for you. See [benchmark.js's docs][benchmark-docs] for more info.
```js
let bench = benchmark()
bench.add('foobar', () => {
foobar()
})
bench.run()
```
[benchmark.js]: https://github.com/bestiejs/benchmark.js
[benchmark-docs]: https://benchmarkjs.com/docs