1.0.1 • Published 1 year ago

@smartholdem/benchmarker v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

benchmarker

This package provides a wrapper around Benchmark.js with sane defaults and formatting.

Installation

yarn add @smartholdem/benchmarker --dev

Usage

import { benchmarker } from "@smartholdem/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.

License

Benchmarker is an open-sourced software licensed under the MIT.

1.0.1

1 year ago

1.0.0

1 year ago