Add docs about running the benchmarks

上级 904a7f6d
......@@ -106,6 +106,22 @@ In the sandbox source, `styled-components` is an alias to `styled-components/src
When you commit our pre-commit hook will run, which executes `lint-staged`. It will run the linter automatically and warn you if the code you've written doesn't comply with our code style guidelines.
### How do I run the benchmarks?
We have three different benchmarks: mounting a deep tree, mounting a wide tree and updating dynamic styles. Shoutout to [@necolas](, who wrote these for `react-native-web` and whom we stole these benchmarks from.
To run the benchmarks run:
yarn run benchmarks
You can also get traces that you can look at in the Chrome DevTools "Performance" panel by running
yarn run benchmarks --tracing
### How do I fix my pre-commit hook?
We've recently migrated from `pre-commit` to `husky`, so if you're running into issues during this migration, you'll likely have to do the following:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
想要评论请 注册