Performance benchmark harness for React-Redux
This repo expects that you are using Yarn for package management.
yarn build
yarn startAfter benchmarks have been built, you can run with simply:
yarn startYou'll need to rebuild the benchmarks after every code change.
To specify a single version:
yarn start --versions 8.1.1
yarn start -v 8.1.1To specify running against multiple versions:
yarn start -v 8.1.1 7.2.5yarn start --scenarios deeptree
yarn start -s deeptreeor specific benchmarks:
yarn start -s deeptree formsBy default, benchmarks run for 30 seconds. To change this, use
yarn start --length 5
yarn start -l 5Benchmarks live in the src/scenarios directory. Each benchmark must render a React component like this:
import { renderApp } from '../../common'
renderApp(<App />, store)Where App is your benchmark component, and store is your redux store.
If you need to make changes to the fps-emit package, bump the version number in its package.json,
then update each benchmark to use the newest version using yarn upgrade-interactive and selecting fps-emit
for an update. Then rebuild all the benchmarks using yarn build