Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Compare two URLs via Google's Lighthouse to check for performance differences (Node.js)

License

Notifications You must be signed in to change notification settings

jonjhiggins/lighthouse-compare-urls

Repository files navigation

lighthouse-compare-urls

CircleCI Codecov badge

CLI tool to compare two URLs via Google's Lighthouse to check for performance differences.

Terminal running lighthouse-compare-urls

Useful for comparing an staging URL with changes against a current live site to see the performance impact of changes.

Results are exported as XLSX file in results directory.

Install

  • npm install lighthouse-compare-urls -g

Run

  • lighthouse-compare-urls --urls "[URL 1],[URL 2]", e.g. lighthouse-compare-urls --urls "https://google.com.au,https://google.co.uk"
  • If you supply more than two the URLs will be split up into multiple tests of two URLs, e.g. lighthouse-compare-urls --urls "https://google.com.au,https://google.com,https://www.google.co.uk/,https://www.google.fr"

Options:

  • --urls "[URL 1],[URL 2]" (required) supply URLs to be tests
  • --jsonExport export all Lighthouse results (large file) to /results

Test

  • npm test and npm run test:watch. Tests are written in Jest.

About

Compare two URLs via Google's Lighthouse to check for performance differences (Node.js)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published