Socket
Socket
Sign inDemoInstall

@augu/benchmarks

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @augu/benchmarks

🐋 Lightweight benchmarking library made for personal use.


Version published
Weekly downloads
3
Maintainers
1
Install size
19.2 kB
Created
Weekly downloads
 

Readme

Source

@augu/benchmarks

:whale2: | 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.

FAQs

Last updated on 29 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc