@storybook/bench
A benchmark for Storybook. Usage:
Last updated 2 months ago by shilman .
MIT · Original npm · Tarball · package.json
$ cnpm install @storybook/bench 
SYNC missed versions from official npm registry.

Storybook Bench

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

Flags

It also accepts the following flags:

option description
--label <label> Save as <label>.csv/json and upload with <label> if SB_BENCH_UPLOAD is true

Environment variables

And consumes the following environment variables:

variable description
SB_BENCH_UPLOAD Upload results to GCP if set to tue
GCP_CREDENTIALS For upload, the GCP credentials to use as stringified JSON
CIRCLE_BRANCH For upload, the branch if running in Circle CI
CIRCLE_SHA1 For upload, the commit hash if running in Circle CI

Current Tags

  • 0.5.0                                ...           latest (2 months ago)

12 Versions

  • 0.5.0                                ...           2 months ago
  • 0.4.0                                ...           2 months ago
  • 0.3.2                                ...           2 months ago
  • 0.3.1                                ...           2 months ago
  • 0.3.0                                ...           2 months ago
  • 0.2.5                                ...           2 months ago
  • 0.2.4                                ...           2 months ago
  • 0.2.3                                ...           2 months ago
  • 0.2.2                                ...           2 months ago
  • 0.2.1                                ...           2 months ago
  • 0.2.0                                ...           2 months ago
  • 0.1.0                                ...           2 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 14
Dependencies (12)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |