@smartholdem/benchmarker
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @smartholdem/benchmarker

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

33.2 kB

Total Files

7

Last publish

Collaborators

  • technolog