Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/bench

Package Overview
Dependencies
Maintainers
29
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/bench

A simple benchmark for Storybook. Usage:

  • 0.7.6--canary.18.9b6563c.0
  • npm
  • Socket score

Version published
Weekly downloads
551
increased by9.76%
Maintainers
29
Weekly downloads
 
Created
Source

Storybook Bench

A simple benchmark for Storybook. Usage:

npx playwright install
npx @storybook/bench 'npx sb init'

This will:

  • Install playwright browsers (unnecessary if you've already installed playwright on your machine)
  • 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

Package last updated on 20 Dec 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc