All Projects → csabapalfi → Pagespeed Score

csabapalfi / Pagespeed Score

Licence: mit
DEPRECATED - use GoogleChrome/lighthouse-ci instead

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Pagespeed Score

Fuego
fuego is a library for automatically generating command line interfaces (CLIs) from function and struct.
Stars: ✭ 37 (+105.56%)
Mutual labels:  cli, google
Trino
Trino: Master your translations with command line!
Stars: ✭ 118 (+555.56%)
Mutual labels:  cli, google
Docker Google Lighthouse
Google Lighthouse - Docker Image
Stars: ✭ 46 (+155.56%)
Mutual labels:  google, pagespeed
Kabarvirus
KabarVirus.com: cepat (PageSpeed 100), ringan (10 KB)
Stars: ✭ 109 (+505.56%)
Mutual labels:  web-performance, pagespeed
Hiper
🚀 A statistical analysis tool for performance testing
Stars: ✭ 2,667 (+14716.67%)
Mutual labels:  cli, pagespeed
Youtubeshop
Youtube autolike and autosubs script
Stars: ✭ 177 (+883.33%)
Mutual labels:  cli, google
Gkeep
Google Keep Command Line Interface (CLI)
Stars: ✭ 114 (+533.33%)
Mutual labels:  cli, google
Aws Google Auth
Provides AWS STS credentials based on Google Apps SAML SSO auth (what a jumble!)
Stars: ✭ 428 (+2277.78%)
Mutual labels:  cli, google
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (+1100%)
Mutual labels:  cli, google
Sitemap Generator Cli
Creates an XML-Sitemap by crawling a given site.
Stars: ✭ 214 (+1088.89%)
Mutual labels:  cli, google
Gcal Cli
Google Calendar command line tool for Node.js
Stars: ✭ 255 (+1316.67%)
Mutual labels:  cli, google
Drive Cli
A command line interface for accessing google drive
Stars: ✭ 449 (+2394.44%)
Mutual labels:  cli, google
Guess
🔮 Libraries & tools for enabling Machine Learning driven user-experiences on the web
Stars: ✭ 6,762 (+37466.67%)
Mutual labels:  web-performance
Nest Cli
CLI tool for Nest applications 🍹
Stars: ✭ 889 (+4838.89%)
Mutual labels:  cli
Tensorlayer
Deep Learning and Reinforcement Learning Library for Scientists and Engineers 🔥
Stars: ✭ 6,796 (+37655.56%)
Mutual labels:  google
Sketch Map Generator
Sketch plugin to fill a shape with a map generated from a given location using Google Maps and Mapbox
Stars: ✭ 824 (+4477.78%)
Mutual labels:  google
Apk Mitm
🤖 A CLI application that automatically prepares Android APK files for HTTPS inspection
Stars: ✭ 893 (+4861.11%)
Mutual labels:  cli
Vestacp nginx pagespeed http2
Rebuild Nginx with Google PageSpeed and http/2 for VestaCP
Stars: ✭ 16 (-11.11%)
Mutual labels:  pagespeed
Youtubeux
With MVVM Architecture pattern using Android Architecture Components This is a sample app demonstrating Youtube player animation using constraint layout
Stars: ✭ 823 (+4472.22%)
Mutual labels:  google
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+4444.44%)
Mutual labels:  cli

DEPRECATED - Please use GoogleChrome/lighthouse-ci instead

pagespeed-score

Build Status Coverage Status

Google PageSpeed score command line toolkit

Get a score and metrics via the Google PageSpeed Insights API or a local Lighthouse run.

Requirements

Usage

npx is the quickest way to try:

$ npx pagespeed-score http://example.com/
name  	score	FCP	SI	LCP	TTI	TBT	CLS
run 1 	100	0.7	0.7	0.7	0.7	0.0	0.00

FCP, SI, LCP, TTI, TBT and CLS are the values for the 6 metrics that affect the score.

Use --help see the list of all options.

multiple runs

--runs <N> overrides the number of runs (default: 1). For more than 1 runs stats will be calculated.

$ npx pagespeed-score --runs 3 https://www.ft.com/
name  	score	FCP	SI	LCP	TTI	TBT	CLS
run 1 	36	6.3	7.1	7.9	10.8	0.4	0.00
run 2 	36	6.3	7.1	8.0	10.8	0.4	0.00
run 3 	36	6.3	7.3	7.9	10.8	0.4	0.00

median	36	6.3	7.1	7.9	10.8	0.4	0.00
stddev	0.0	0.0	0.1	0.0	0.0	0.0	0.00
min   	36	6.3	7.1	7.9	10.8	0.4	0.00
max   	36	6.3	7.3	8.0	10.8	0.4	0.00

mobile or desktop strategy

--strategy <mobile|desktop> sets the Lighthouse strategy (default: mobile)

$ npx pagespeed-score --strategy desktop https://www.google.com
name  	score	FCP	FMP	SI	FCI	TTI
run 1 	100	0.5	0.5	0.5	0.9	0.9

save result JSON to disk

--save-results will save all Lighthouse results (from the PSI API response or local Lighthouse run) as JSON files.

$ npx pagespeed-score --save-results --runs=2 https://www.google.com
name  	score	FCP	FMP	SI	FCI	TTI
run 1 	96	0.9	1.0	1.2	3.1	3.9
run 2 	96	0.9	1.0	1.0	3.1	3.7

$ ls
1-0.result.json
2-0.result.json

Local mode

Switches to running Lighthouse locally instead of calling the PSI API. This can be useful for non-public URLs (e.g. staging environment on a private network) or debugging. To ensure the local results are close to the PSI API results this module:

  • uses the same version of LightHouse as PSI (6.0.0 as of 2020-05-30)
  • uses the LightRider mobile config like PSI
  • allows throttling of CPU to better match PSI infrastructure limits
  • you can also use the same Chrome version as PSI (81 as of 2020-05-30) by specifying CHROME_PATH (and ensuring you have the correct version installed)
CHROME_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" npx pagespeed-score --local "<url>"

Local results will still differ from the PSI API because of local hardware and network variability.

set CPU slowdown multiplier

--cpu-slowdown will allow setting CPU throttling multiplier (default 4x). Only available in local mode.

Please note that PSI infrastructure already runs on a slower CPU (that's like a mobile device) hence the need to slow our machines CPU down for local runs.

save trace & devtools log to disk

--save-assets will save trace & devtools log to disk. Only available in local mode.

$ npx pagespeed-score --save-assets --local https://www.google.com
name  	score	FCP	FMP	SI	FCI	TTI
run 1 	95	1.4	1.4	1.7	3.6	3.8

$ ls
1-0.devtoolslog.json
1-0.trace.json

save Lantern metrics estimation traces

Setting the LANTERN_DEBUG=true environment variable along with --save-assets --local will save traces for how metrics were simulated by Lantern. Only available in local mode.

$ LANTERN_DEBUG=true npx pagespeed-score --local --save-assets https://www.google.com
name  	score	FCP	FMP	SI	FCI	TTI
run 1 	95	1.4	1.4	1.7	3.6	3.8

$ ls
1-0.devtoolslog.json
1-0.trace.json
1-optimisticFirstContentfulPaint.trace.json
1-optimisticFirstMeaningfulPaint.trace.json
1-optimisticFlexFirstContentfulPaint.trace.json
1-optimisticFlexFirstMeaningfulPaint.trace.json
1-optimisticFlexInteractive.trace.json
1-optimisticInteractive.trace.json
1-pessimisticFirstContentfulPaint.trace.json
1-pessimisticFirstMeaningfulPaint.trace.json
1-pessimisticInteractive.trace.json

You can drag and drop these traces on the Chrome Devtools Performance tab.

See also lighthouse#5844 Better visualization of Lantern simulation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].