https://github.com/marvinhagemeister/benchmarkjs-pretty
Tiny wrapper around benchmarkjs with a nicer api
https://github.com/marvinhagemeister/benchmarkjs-pretty
benchmark benchmarkjs pretty
Last synced: 11 months ago
JSON representation
Tiny wrapper around benchmarkjs with a nicer api
- Host: GitHub
- URL: https://github.com/marvinhagemeister/benchmarkjs-pretty
- Owner: marvinhagemeister
- License: mit
- Created: 2017-07-02T09:48:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T00:45:12.000Z (over 4 years ago)
- Last Synced: 2025-04-13T14:42:35.432Z (about 1 year ago)
- Topics: benchmark, benchmarkjs, pretty
- Language: TypeScript
- Size: 178 KB
- Stars: 20
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Benchmarkjs pretty
This library is a tiny wrapper around the popular [benchmarkjs](https://github.com/bestiejs/benchmark.js)
but with a nicer api. It's always a bit cumbersome to specify the `cycle` and
`complete` functions in each project where benchmarking is done.
## Installation
```bash
# npm
npm install --save-dev benchmarkjs-pretty
# yarn
yarn add --dev benchmarkjs-pretty
```
## Usage
```js
import Benchmark from "benchmarkjs-pretty";
new Benchmark()
.add("foo", myFunction)
.add("bar", myOtherFunction)
.run() // Returns promise
```
## License
MIT, see [LICENSE](LICENSE.md).