🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

tti-observer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tti-observer

Automated, headless-able time-to-interactive measurement

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

tti-measure

A simple script to measure the time-to-interactive of a remote or local website. See the blogpost for more information and background.

🚀🚀 tti-measure 🚀🚀

  Automated, headless-able time-to-interactive measurement

  E.g.: tti-measure -u "https://greta.io" -u "http://127.0.0.1:9999/test.html"


  -u, --url       Compulsory arg    Urls to run the script on. Pass multiple -u to test multiple urls
  -r, --runs      Default: 2        Number of runs per page
  -t, --target    Default: 5000     Retuns non-zero if a test fails to load within the target time (ms)
  -a, --autostart Default: true     Autostart chrome
  --headless      Default: false    Should chrome run headless
  -cp,            Default: 9222     Chrome remote debug port
  -v, --debug     Default: false    Log verbosity
  -p, --profile   Default: 3gDsl    Network profile. '3gDsl' runs the tests on 3g and on dsl.

  Valid network profiles ['3g', 'dsl', 'uncap', '3gDsl']

Install

# Install
npm i -g tti-measure

Then, just execute tti-measure -u "https://greta.io" to have an idea of the time-to-interactive on our homepage. It will run the page twice on 3g profile and twice on the dsl profile, and print an average.

$ tti-measure -u "https://greta.io"

🚀🚀 tti-measure 🚀🚀

  Chrome connected

-----------------#  Average TTI  #-----------------
{
  "https://greta.io": {
    "3g": 863.5,
    "dsl": 579.5
  }
}
---------------------------------------------------

Keywords

tti

FAQs

Package last updated on 25 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts