Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

AugustArchive/benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

About

🐋 | Lightweight benchmarking library made for personal use.

Resources

License

Stars

Watchers

Forks