@augu/benchmarks
TypeScript icon, indicating that this package has built-in type declarations

1.0.1Β β€’Β PublicΒ β€’Β Published

@augu/benchmarks

πŸ‹ | Lightweight benchmarking library made for personal use.

Usage

import { Suite } from '@augu/benchmarks';

const benchmarks = new Suite();
benchmarks.add('@augu/immutable - Collection', () => {
  // do stuff here
});

benchmarks.add('Collection', () => {
  // do stuff here
});

benchmarks.on('started', () => {
  // benchmark has started, suite is in a running state
});

benchmarks.on('end', (stats) => {
  // benchmark has ended, let's do something with the stats! (state = ended)
});

benchmarks.start(); // Promise<void>

License

@augu/benchmarks is released under the MIT License. Read here for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @augu/benchmarks

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

19.7 kB

Total Files

11

Last publish

Collaborators

  • auguwu
  • ohlookitsaugust