Skip to content

Commit

Permalink
benchmark: forward execArgv to spawned childs
Browse files Browse the repository at this point in the history
Modify the benchmark runner to forward `process.execArgv`
to child processes spawned to run individual scenarios (configs).
  • Loading branch information
Miroslav Bajtoš committed Dec 16, 2014
1 parent 165b70f commit a930ddb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Benchmark.prototype._run = function() {
var argv = queue[i++];
if (!argv)
return;
argv = process.execArgv.concat(argv);
var child = spawn(node, argv, { stdio: 'inherit' });
child.on('close', function(code, signal) {
if (code)
Expand Down

0 comments on commit a930ddb

Please sign in to comment.