mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
* use different eslint config for es6 and es5 * remove confusing eslint/baseConfig.js & add more eslint setting for es5, es6 * more clear way to run eslint on es5 & es6 file * seperate ESNext, ES6, ES6 path, and use different lint config * rename eslint config file & update eslint rules * Undo yarn.lock changes * Rename a file * Remove unnecessary exceptions * Refactor a little bit * Refactor and tweak the logic * Minor issues |
||
|---|---|---|
| .. | ||
| benchmarks | ||
| benchmark.js | ||
| build.js | ||
| package.json | ||
| README.md | ||
| runner.js | ||
| server.js | ||
| stats.js | ||
| yarn.lock | ||
React Benchmarking
Commands
In most cases, the only two commands you might want to use are:
yarn startyarn build core,dom-client --type=UMD_PROD && yarn start --skip-build
The first command will run benchmarks with all the default settings. A local and remote build will occur on React and ReactDOM UMD bundles, both local and remote repos will be run against all benchmarks.
The second command will run all benchmarks but skip the build process. This is useful for when doing local performance tweaking and the remote repo has already had its bundles built. Both local and remote repos will be run against all benchmarks with this command too.
The other commands are as follows:
# will compare local repo vs remote merge base repo
yarn start
# will compare local repo vs remote merge base repo
# this can significantly improve bench times due to no build
yarn start --skip-build
# will only build and run local repo against benchmarks (no remote values will be shown)
yarn start --local
# will only build and run remote merge base repo against benchmarks (no local values will be shown)
yarn start --remote
# will only build and run remote master repo against benchmarks
yarn start --remote=master
# same as "yarn start"
yarn start --remote --local
# runs benchmarks with Chrome in headless mode
yarn start --headless
# runs only specific string matching benchmarks
yarn start --benchmark=hacker