Socket
Socket
Sign inDemoInstall

@storybook/bench

Package Overview
Dependencies
154
Maintainers
29
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storybook/bench

A simple benchmark for Storybook. Usage:


Version published
Weekly downloads
529
decreased by-3.64%
Maintainers
29
Created
Weekly downloads
 

Readme

Source

Storybook Bench

A simple benchmark for Storybook. Usage:

sb-bench 'npx sb init'

This will:

  • Install storybook using sb init (or whatever command is provided)
    • Measure install time and size
  • Start
    • Measure build time
    • Measure page load time
  • Build
    • Measure build time
  • Browse
    • Measure page load time
    • Measure bundle sizes

It outputs all results to the files bench.csv and bench.json. It uploads results to a BigQuery data warehouse if SB_BENCH_UPLOAD and GCP_CREDENTIALS environment variables are set.

Flags

It also accepts the following flags:

optiondescription
--label Save as .csv/json and upload with if SB_BENCH_UPLOAD is true
--no-installDo not measure storybook install time
--no-startDo not measure storybook start time
--no-browseDo not measure storybook browse time

Environment variables

And consumes the following environment variables:

variabledescription
SB_BENCH_UPLOADUpload results to GCP if set to tue
GCP_CREDENTIALSFor upload, the GCP credentials to use as stringified JSON
CIRCLE_BRANCHFor upload, the branch if running in Circle CI
CIRCLE_SHA1For upload, the commit hash if running in Circle CI

FAQs

Last updated on 10 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc