diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2017-01-16 02:59:13 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-01-31 03:03:57 +0800 |
commit | 60d77bd514d3dc65cfbb64ebb8ae1f364e8bf8eb (patch) | |
tree | 7090c026e7b5cdb9550d18be604e2d375a318800 /benchmark/run.js | |
parent | ca3d131bd42afa0c68be6aeb27623d53eae547a1 (diff) | |
download | android-node-v8-60d77bd514d3dc65cfbb64ebb8ae1f364e8bf8eb.tar.gz android-node-v8-60d77bd514d3dc65cfbb64ebb8ae1f364e8bf8eb.tar.bz2 android-node-v8-60d77bd514d3dc65cfbb64ebb8ae1f364e8bf8eb.zip |
benchmark: add progress indicator to compare.js
* Print the progress bar and the current benchmark to stderr
when stderr is TTY and stdout is not.
* Allow cli arguments without values via setting.boolArgs
* Add --no-progress option
PR-URL: https://github.com/nodejs/node/pull/10823
Fixes: https://github.com/nodejs/node/issues/8659
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Diffstat (limited to 'benchmark/run.js')
-rw-r--r-- | benchmark/run.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/run.js b/benchmark/run.js index c048248667..cb4f8cc004 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -44,6 +44,9 @@ if (format === 'csv') { } child.on('message', function(data) { + if (data.type !== 'report') { + return; + } // Construct configuration string, " A=a, B=b, ..." let conf = ''; for (const key of Object.keys(data.conf)) { |