1.1.2 • Published 5 years ago

benmark v1.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
5 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

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago