https://github.com/jordanpapaleo/lighthouse-performance-throttle
Node app that allows for changing the connection speed throttling in Google Lighthouse
https://github.com/jordanpapaleo/lighthouse-performance-throttle
lighthouse nodejs throttling
Last synced: 3 months ago
JSON representation
Node app that allows for changing the connection speed throttling in Google Lighthouse
- Host: GitHub
- URL: https://github.com/jordanpapaleo/lighthouse-performance-throttle
- Owner: jordanpapaleo
- Created: 2021-08-12T18:36:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-12T19:07:02.000Z (about 4 years ago)
- Last Synced: 2025-01-01T03:41:38.859Z (9 months ago)
- Topics: lighthouse, nodejs, throttling
- Language: JavaScript
- Homepage:
- Size: 279 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lighthouse Performance Throttle
The purpose of this project is to allow Google Lighthouse performance to be run with throttling other than 3g. It will output the performance score after each execution and write the complete report content to `results.json`.
## Setup
This project requires NodeJS. It was built using NodeJS v14.15.3
1. Clone the repository
2. From the root of the project run `npm install` in your terminal## Use
This tool is execuded via the command line.
Cli flags:
- `--url`: required | the url to test
- `--speed`: optional | 3g 4g lte | defaults to 3g like the lighthouse serviceRun the following command from the root of your project in your terminal.
```bash
node index.js --url https://mysite.com --speed lte
```## Links
- https://www.speedtest.net/global-index
- https://github.com/GoogleChrome/lighthouse/blob/HEAD/docs/readme.md#using-programmatically
- https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/constants.js
- https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/connectivity.ini.sample