1.0.0 • Published 4 years ago

@kodekeep/benchmarker v1.0.0

Weekly downloads
1
License
MPL-2.0
Repository
github
Last release
4 years ago

Benchmarker

GitHub Tests Action Status Code Coverage Minimum Node.js Version Latest Version Total Downloads License

A wrapper around Benchmark.js that provides sane defaults and formatting

Installation

$ yarn add @kodekeep/benchmarker --dev

Usage

import { benchmarker } from "@kodekeep/benchmarker";

benchmarker("utils", [
	{
		name: "map",
		scenarios: require("./map"),
	},
	{
		name: "filter",
		scenarios: require("./filter"),
	},
	{
		name: "reduce",
		scenarios: require("./reduce"),
	},
]);

Testing

$ yarn test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover a security vulnerability within this package, please send an e-mail to hello@kodekeep.com. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

Mozilla Public License Version 2.0 (MPL-2.0). Please see License File for more information.