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.4--canary.f16e3b5.0
  • npm
  • Socket score

Version published
Maintainers
29
Created
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

Package last updated on 20 Apr 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