Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 0b5e9f7

Browse files
Peter Martonaddaleax
Peter Marton
authored andcommitted
doc: add multiple build guide to benchmarking doc
PR-URL: nodejs/node#16142 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 96eb4d7 commit 0b5e9f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

+13
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,19 @@ First build two versions of Node.js, one from the master branch (here called
164164
`./node-master`) and another with the pull request applied (here called
165165
`./node-pr-5134`).
166166

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

169182
```console

0 commit comments

Comments
 (0)