nano-performance

0.0.7 • Public • Published

nano-performance

An extremely lightweight node module that measures execution time in nanoseconds.

Created by Agilit-e

Installation

Using npm:

npm install nano-performance

Display output in milliseconds (default):

const nano = require('nano-performance')
 
nano.timeStart('Test')
 
setTimeout(function() {
  nano.timeEnd('Test')
}, 10)

Output = Test: 11.086301 ms

Display output in nanoseconds:

const nano = require('nano-performance')
 
nano.timeStart('Test')
 
setTimeout(function() {
  nano.timeEnd('Test', 'ns')
}, 10)

Output = Test: 11086301 ns

Package Sidebar

Install

npm i nano-performance

Homepage

agilite.io

Weekly Downloads

3

Version

0.0.7

License

MIT

Unpacked Size

3.17 kB

Total Files

4

Last publish

Collaborators

  • agilite