diff options
author | Peter Marton <peter@risingstack.com> | 2017-10-11 10:15:49 +0200 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2017-10-26 21:22:54 -0400 |
commit | 24388771ea6660ed53ee2f91672af7afaab334b0 (patch) | |
tree | 3a478db587c599abd88b790ad3600b51af7283a9 /doc | |
parent | 5118f3146643dc55e7e7bd3082d1de4d0e7d5426 (diff) | |
download | android-node-v8-24388771ea6660ed53ee2f91672af7afaab334b0.tar.gz android-node-v8-24388771ea6660ed53ee2f91672af7afaab334b0.tar.bz2 android-node-v8-24388771ea6660ed53ee2f91672af7afaab334b0.zip |
doc: add multiple build guide to benchmarking doc
PR-URL: https://github.com/nodejs/node/pull/16142
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guides/writing-and-running-benchmarks.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/guides/writing-and-running-benchmarks.md b/doc/guides/writing-and-running-benchmarks.md index 1350b90e02..62df0af417 100644 --- a/doc/guides/writing-and-running-benchmarks.md +++ b/doc/guides/writing-and-running-benchmarks.md @@ -164,6 +164,19 @@ First build two versions of Node.js, one from the master branch (here called `./node-master`) and another with the pull request applied (here called `./node-pr-5134`). +To run multiple compiled versions in parallel you need to copy the output of the +build: `cp ./out/Release/node ./node-master`. Check out the following example: + +```console +$ git checkout master +$ ./configure && make -j4 +$ cp ./out/Release/node ./node-master + +$ git checkout pr-5134 +$ ./configure && make -j4 +$ cp ./out/Release/node ./node-pr-5134 +``` + The `compare.js` tool will then produce a csv file with the benchmark results. ```console |