1.0.1 • Published 6 years ago

@nodelib/benchmark.meter v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@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.