File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,27 @@ cd ./benchmarks
1313yarn install
1414
1515# Run a benchmark of your choice
16+ # eg Compare your local build of js-search to the latest released build
1617node ./regression-test.js
1718```
19+
20+ You can also compare two local builds of js-search:
21+
22+ ``` bash
23+ # Assumes you've frun `yarn install` in both directories prior
24+
25+ cd /path/to/js-search
26+
27+ # Make some changes and then build js-search
28+ npm run build
29+
30+ # Move your build into the benchmarks folder as the 'latest'
31+ cp -r ./dist ./benchmarks/node_modules/js-search/
32+
33+ # Make more changes and then re-build js-search
34+ npm run build
35+
36+ # Compare your most recent build to the previous one
37+ cd ./benchmarks
38+ node ./regression-test.js
39+ ```
You can’t perform that action at this time.
0 commit comments