Skip to content

Commit 776ac9c

Browse files
Peter Martonhekike
authored andcommitted
doc: add managing multiple builds section to benchmarking guide
1 parent 2f8ddb2 commit 776ac9c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/guides/writing-and-running-benchmarks.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,19 @@ First build two versions of Node.js, one from the master branch (here called
163163
`./node-master`) and another with the pull request applied (here called
164164
`./node-pr-5134`).
165165

166+
To run multiple compiled versions in parallel you need to copy the output of the
167+
build: `cp ./out/Release/node ./node-master`. Check out the following example:
168+
169+
```console
170+
$ git checkout master
171+
$ ./configure && make -j4
172+
$ cp ./out/Release/node ./node-master
173+
174+
$ git checkout pr-5134
175+
$ ./configure && make -j4
176+
$ cp ./out/Release/node ./node-pr-5134
177+
```
178+
166179
The `compare.js` tool will then produce a csv file with the benchmark results.
167180

168181
```console

0 commit comments

Comments
 (0)