function-perf
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

perf-function

Measure the performance of an function easily

Installation

This is a Node.js module available through the npm registry. It can be installed using the npm or yarn command line tools.

npm install function-perf --save

Usage

import { Measure } from 'function-perf';
 
class Example {
 
  @Measure({ asyncFunction: true })
  async asyncFunctionToMeasure() {
    // ...
  }
 
  @Measure()
  functionToMeasure() {
    // ...
  }
}

run demo.ts to complete usage

Tests

npm install
npm test

Dependencies

None

Dev Dependencies

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i function-perf

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

15.1 kB

Total Files

9

Last publish

Collaborators

  • rafaelgss