timing.io
Timing.js is a small set of helpers for working with the Navigation Timing API to identify where your application is spending its time. Useful as a standalone script, DevTools Snippet or bookmarklet.
Installation
npm i timing.io
Usage
By default, running the script will print out a summary table of measurements. The API for the script is as follows:
Get measurements:
timing.getTimes()
Sample output of Chrome:
firstPaint: 1411307463455813 // NewfirstPaintTime: 6850390625 // NewappcacheTime: 2connectEnd: 1411307463185connectStart: 1411307463080connectTime: 105 // NewdomComplete: 1411307463437domContentLoadedEventEnd: 1411307463391domContentLoadedEventStart: 1411307463391domContentReadyTime: 690 // NewdomInteractive: 1411307463391domLoading: 1411307463365domReadyTime: 46 // NewdomainLookupEnd: 1411307463080domainLookupStart: 1411307463032fetchStart: 1411307463030initDomTreeTime: 56 // NewloadEventEnd: 1411307463445loadEventStart: 1411307463437loadEventTime: 8 // NewloadTime: 558 // NewlookupDomainTime: 48navigationStart: 1411307462887readyStart: 143 // NewredirectEnd: 0redirectStart: 0redirectTime: 0 // NewrequestStart: 1411307463185requestTime: 150 // NewresponseEnd: 1411307463335responseStart: 1411307463333secureConnectionStart: 1411307463130unloadEventEnd: 0unloadEventStart: 0unloadEventTime: 0 // New
License
MIT