Skip to content
/ faro Public

Analyzes performance metrics collected with a headless chrome

Notifications You must be signed in to change notification settings

gamestoy/faro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faro

Home-made Lighthouse. Collects performance metrics using Puppeteer.

Usage

npm install
node bin/faro.js <url>

Options

  --path, -p     Set a file path where the report will be saved
  --mark, -m     Select a Performance metric, created with [console.timeStamp](), as a time limit
  --cpu, -c      Set CPU throttling                                     
  --device, -d   Select desktop computer or mobile device
                           [options: "mobile", "desktop"]
  --network, -n  Select a network type
                           [options: "native", "cable", "lte", "4g", "3gFast", "3g", "3gSlow", "2g"]
  --header, -h   Set a HTTP header when accessing the url. The format should be <name>=<value>

Examples

node bin/faro.js "https://www.google.com"
# Analizes the desktop site without throttling. The report is saved in "./logs".

node bin/faro.js "https://www.google.com" -c=4 -d=mobile -n=3g
# Simulates a mid-range smartphone

node bin/faro.js "https://www.google.com" -m=first-meaningful-paint
# Analyzes metrics before the first meaningful paint

node bin/faro.js "https://www.google.com" -p=<new_path>
# Saves the report in a new folder

node bin/faro.js "https://www.google.com" -h="env=beta" -h="user=faro"
# Sets an array of headers.

About

Analyzes performance metrics collected with a headless chrome

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published