Skip to content

Commit a930ddb

Browse files
author
Miroslav Bajtoš
committed
benchmark: forward execArgv to spawned childs
Modify the benchmark runner to forward `process.execArgv` to child processes spawned to run individual scenarios (configs).
1 parent 165b70f commit a930ddb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmark/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Benchmark.prototype._run = function() {
131131
var argv = queue[i++];
132132
if (!argv)
133133
return;
134+
argv = process.execArgv.concat(argv);
134135
var child = spawn(node, argv, { stdio: 'inherit' });
135136
child.on('close', function(code, signal) {
136137
if (code)

0 commit comments

Comments
 (0)