1.2.1 • Published 7 years ago

js-performance v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

js-performance

A simple javascript utility to measure performance

Reason

Using console.time and console.timeEnd is tedious and may introduce extra time by invoking console.

Usage

  • time to mark the start point
  • timeEnd to mark the end point
  • log to log all mark message together
  • block to block js thread
import {time, timeEnd, log, block} from 'js-performance'

time('test')
block(5000)
timeEnd('test')

log() // test: 5000ms
  • measureCRP to measure the CRP time including interactive, domContentLoaded and complete
import {measureCRP} from 'js-performance'

measureCRP() // log your CRP time
1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago