react/scripts/bench
Leslie ccb2f82a83 Fix a few typos (#10860) 2017-09-27 11:13:21 +01:00
..
benchmarks Wop optimized this repository (#10374) 2017-08-04 14:41:38 +01:00
README.md fix typo in benchmark docs (#9706) 2017-05-18 19:13:59 -04:00
benchmark.js Run prettier on scripts/bench (#9671) 2017-05-11 16:14:17 -07:00
build.js Run prettier on scripts/bench (#9671) 2017-05-11 16:14:17 -07:00
package.json Moved around package dependencies fixes #10335 (#10424) 2017-08-09 18:47:52 +01:00
runner.js Run prettier on scripts/bench (#9671) 2017-05-11 16:14:17 -07:00
server.js Fix a few typos (#10860) 2017-09-27 11:13:21 +01:00
stats.js Fix typo in script function name (#10611) 2017-09-05 10:28:34 -07:00
yarn.lock Moved around package dependencies fixes #10335 (#10424) 2017-08-09 18:47:52 +01:00

README.md

React Benchmarking

Commands

In most cases, the only two commands you might want to use are:

  • yarn bench
  • yarn build -- --type=UMD_PROD && yarn bench -- --skip-build

The first command will run benchmarks with all the default settings. A local and remote build will occcur on all 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 bench

# will compare local repo vs remote merge base repo
# this can significantly improve bench times due to no build
yarn bench -- --skip-build

# will only build and run local repo against benchmarks (no remote values will be shown)
yarn bench -- --local

# will only build and run remote merge base repo against benchmarks (no local values will be shown)
yarn bench -- --remote

# will only build and run remote master repo against benchmarks
yarn bench -- --remote=master

# same as "yarn bench"
yarn bench -- --remote --local

# runs benchmarks with Chrome in headless mode
yarn bench -- --headless

# runs only specific string matching benchmarks
yarn bench -- --benchmark=hacker