All Projects → mikestead → Lighthouse Batch

mikestead / Lighthouse Batch

Licence: mit
Run Lighthouse analysis over multiple sites in a single command

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lighthouse Batch

Lighthouse
Automated auditing, performance metrics, and best practices for the web.
Stars: ✭ 23,903 (+28698.8%)
Mutual labels:  audit, developer-tools, performance-analysis, performance-metrics, pwa
Nemetric
前端性能指标的监控,采集以及上报。用于测量第一个dom生成的时间(FP/FCP/LCP)、用户最早可操作时间(fid|tti)和组件的生命周期性能,,网络状况以及资源大小等等。向监控后台报告实际用户测量值。
Stars: ✭ 145 (+74.7%)
Mutual labels:  performance, performance-analysis, performance-metrics
Speedracer
Collect performance metrics for your library/application.
Stars: ✭ 1,868 (+2150.6%)
Mutual labels:  performance, performance-analysis, performance-metrics
Lighthouse Monitor
Investigate performance over your whole company with lighthouse
Stars: ✭ 136 (+63.86%)
Mutual labels:  lighthouse, performance, performance-analysis
Junitperf
⛵️Junit performance rely on junit5 and jdk8+.(java 性能测试框架)
Stars: ✭ 86 (+3.61%)
Mutual labels:  performance, performance-analysis, performance-metrics
Autowebperf
AutoWebPerf provides a flexible and scalable framework for running web performance audits with arbitrary audit tools including PageSpeedInsights, WebPageTest and more.
Stars: ✭ 199 (+139.76%)
Mutual labels:  lighthouse, performance, performance-metrics
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+2648.19%)
Mutual labels:  performance, performance-analysis, performance-metrics
Sparklens
Qubole Sparklens tool for performance tuning Apache Spark
Stars: ✭ 345 (+315.66%)
Mutual labels:  performance, performance-analysis, performance-metrics
docker-google-lighthouse-puppeteer
Google Lighthouse + Puppeteer / Docker Image
Stars: ✭ 29 (-65.06%)
Mutual labels:  performance-metrics, performance-analysis, lighthouse
Lighthouse Security
Runs the default Google Lighthouse tests with additional security tests
Stars: ✭ 190 (+128.92%)
Mutual labels:  audit, developer-tools, lighthouse
Inspectit
inspectIT is the leading Open Source APM (Application Performance Management) tool for analyzing your Java (EE) applications.
Stars: ✭ 513 (+518.07%)
Mutual labels:  performance, performance-analysis, performance-metrics
Publisher Ads Lighthouse Plugin
Publisher Ads Lighthouse Plugin is a tool to improve ad speed and overall quality through a series of automated audits. This tool will aid in resolving discovered problems, providing a tool to be used to evaluate effectiveness of iterative changes while suggesting actionable feedback.
Stars: ✭ 58 (-30.12%)
Mutual labels:  audit, lighthouse, performance-analysis
Performance Bookmarklet
Performance-Bookmarklet helps to analyze the current page through the Resource Timing API, Navigation Timing API and User-Timing - requests by type, domain, load times, marks and more. Sort of a light live WebPageTest.
Stars: ✭ 997 (+1101.2%)
Mutual labels:  performance, performance-metrics
Websu
Website Speed and Performance Optimization and monitoring
Stars: ✭ 37 (-55.42%)
Mutual labels:  lighthouse, performance-analysis
Lighthouse Keeper
Keep an eye on Google Lighthouse score changes directly on GitHub 💡👀
Stars: ✭ 82 (-1.2%)
Mutual labels:  lighthouse, performance
Stackimpact Nodejs
DEPRECATED StackImpact Node.js Profiler - Production-Grade Performance Profiler: CPU, memory allocations, async calls, errors, metrics, and more
Stars: ✭ 46 (-44.58%)
Mutual labels:  performance-analysis, performance-metrics
Hoppscotch
👽 Open source API development ecosystem https://hoppscotch.io
Stars: ✭ 34,569 (+41549.4%)
Mutual labels:  developer-tools, pwa
Import Cost
displays the import size of the package you are importing inside the code editor
Stars: ✭ 1,021 (+1130.12%)
Mutual labels:  performance, performance-analysis
Lightkeeper
Run Lighthouse tests in Pull Requests for multiple URLs with custom budgets
Stars: ✭ 83 (+0%)
Mutual labels:  lighthouse, performance
Profimp
Python import profiler
Stars: ✭ 52 (-37.35%)
Mutual labels:  performance, performance-analysis

Lighthouse Batch Reporter

Supports executing Lighthouse analysis over a number of sites in sequence and generating a summary report including all of their scores. Scores are calculated from the average score between Performance, PWA, Accessibility and Best Practice and SEO sections.

Also writes out the full json report for each site and optionally an html report too.

Lighthouse Batch v7+ requires Node v12+. This is a requirement from the dependency on Lighthouse v7+.

CLI

Example usage

npx lighthouse-batch -s https://www.bbc.com,https://housing.com

or install globally before use

npm install lighthouse-batch -g
lighthouse-batch -s https://www.bbc.com,https://housing.com

This will generate the following files under the ./report/lighthouse folder.

www_bbc_com.report.json   // Full results for bbc.com
housing_com.report.json   // Full results from housing.com
summary.json              // Summary of results with scores out of 100

Example summary.json

[
  {
    "url": "https://www.bbc.com",
    "name": "www_bbc_com",
    "file": "www_bbc_com.report.json",
    "score": "0.64",
    "detail": {
      "performance": 0.36,
      "accessibility": 0.87,
      "best-practices": 0.71,
      "seo": 0.96,
      "pwa": 0.31
    }
  },
  {
    "url": "https://housing.com",
    "name": "housing_com",
    "file": "housing_com.report.json",
    "score": "0.71",
    "detail": {
      "performance": 0.42,
      "accessibility": 0.78,
      "best-practices": 0.93,
      "seo": 0.97,
      "pwa": 0.46
    }
  }
]

There's the option to read site urls from a text file, one per line.

lighthouse-batch -f sites.txt

Example sites.txt:

https://www.bbc.com
https://housing.com

If you want html reports include the --html option.

housing_com.report.html
www_bbc_com.report.html

Or add the --csv option for csv reports.

housing_com.report.csv
www_bbc_com.report.csv

You can specify budget thresholds for primary metrics. If any are not met the run will fail.

lighthouse-batch -s https://web.dev \
    --score 92 \
    --seo 95 \
    --pwa 85 \
    --best-practices 90 \
    --accessibility 100 \
    --fail-fast

The --fail-fast option will error as soon as a budget is not met and skip pending sites.

All options

lighthouse-batch [options]

Options:
  -V, --version                 output the version number
  -s, --sites [sites]           a comma delimited list of site urls to analyze with Lighthouse
  -f, --file [path]             an input file with a site url per-line to analyze with Lighthouse
  -p, --params <params>         extra parameters to pass to lighthouse cli for each execution e.g. -p "--perf --quiet"
  -h, --html                    generate an html report alongside the json report
  --csv                         generate a csv report alongside the json report
  -o, --out [out]               the output folder to place reports, defaults to './report/lighthouse'
  --score <threshold>           average score for each site to meet (1-100)
  --accessibility <threshold>   accessibility score for each site to meet (1-100)
  --best-practices <threshold>  best practices score for each site to meet (1-100)
  --seo <threshold>             seo score for each site to meet (1-100)
  --pwa <threshold>             pwa score for each site to meet (1-100)
  --fail-fast                   fail as soon as a budget threshold is not met
  -g, --use-global              use a global lighthouse install instead of the dependency version
  -v, --verbose                 enable verbose logging
  --no-report                   remove individual json reports for each site
  --print                       print the final summary to stdout
  --help                        output usage information

Notes

  • Chrome is run with the following flags to support the widest set of execution environments, including docker containers --chrome-flags="--no-sandbox --headless --disable-gpu". You can replace these with your own by passing --chrome-flags as extra parameters. e.g.

    --params "--chrome-flags=\"--no-sandbox --disable-gpu\""

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].