JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37
  • Score
    100M100P100Q48383F
  • License MIT

An extremely lightweight node module that measures execution time in nanoseconds

Package Exports

  • nano-performance

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nano-performance) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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