1.1.2 • Published 6 years ago

benmark v1.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

benmark

A library to help with benchmarking.

Configuration

config/default.js

const logger = require('winston')
require('winston-daily-rotate-file')

logger.add(logger.transports.DailyRotateFile, {
  dirname: './logs',
  filename: 'xpub-epmc.log',
  datePattern: 'YYYY-MM-DD',
  zippedArchive: true,
  maxFiles: '30d',
})

module.exports = {
	benmark: { logger }
};

Usage

Currently it has the following functionalities:

  • timer: help track how long a function takes

See tests/index.test.js for the usage.

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago