@nodelib/benchmark.meter

The utilities for work with metrics for @nodelib/benchmark

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@nodelib/benchmark.meter
Minified + gzip package size for @nodelib/benchmark.meter in KB

Readme

@nodelib/benchmark.meter

The utilities for work with metrics for @nodelib/benchmark. See @nodelib/benchmark for more information.

Install

$ npm install @nodelib/benchmark.meter

Usage

const { Meter } = require('@nodelib/benchmark.meter');

const meter = new Meter();

meter.time('fill_map_time');
Array(100).fill(0).map((_, index) => index);
meter.memory('fill_map_memory');
meter.time('fill_map_time');
meter.common('custom_marker', 1);

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.