Browse Source

benchmark: pass execArgv to the benchmarking process

Benchmarker should pass exec flags (e.g. --no-crankshaft,
--turbofan-filter, --trace-opt etc) to the benchmarking process

Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
PR-URL: https://github.com/iojs/io.js/pull/928
v1.8.0-commit
Petka Antonov 10 years ago
committed by Sam Roberts
parent
commit
8a1e22af3a
  1. 1
      benchmark/common.js

1
benchmark/common.js

@ -145,6 +145,7 @@ Benchmark.prototype._run = function() {
var argv = queue[i++]; var argv = queue[i++];
if (!argv) if (!argv)
return; return;
argv = process.execArgv.concat(argv);
var child = spawn(node, argv, { stdio: 'inherit' }); var child = spawn(node, argv, { stdio: 'inherit' });
child.on('close', function(code, signal) { child.on('close', function(code, signal) {
if (code) if (code)

Loading…
Cancel
Save