0.0.5 • Published 3 years ago

benchy-cli v0.0.5

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

A small CLI tool for comparing performance metrics between web pages with Lighthouse.

demo

Installation

yarn global add benchy-cli

Commands

Audit

$ benchy audit <urls...>

Launch lighthouse audits for <urls...> and show report in the terminal. Multiple URLs can be provided.

Options

  • -c [NUM] - Number of audits per url. default: 1.
  • -d - Output the Document Stats section.
  • -p - Output the Page Metrics section.
  • -i - Output the Interactive Metrics section.
  • -l - Output the Layout Metrics section.
  • -t - Output the Task section.

List

$ benchy list

List all saved audits.

Report

$ benchy report website_A website_B

Compare saved audits.

┌─────────────┬────────────────┬────────────────┐
│             │ website_A      │ website_B      │
├─────────────┼────────────────┼────────────────┤
│ metric      │ 2859ms         │ 2264ms         │
│             ├────────┬───────┼────────┬───────┤
│             │ stdev  │ -     │ stdev  │ diff  |
└─────────────┴────────┴───────┴────────┴───────┘

Clean

$ benchy clean

Delete all audits.