benchmark: pass execArgv to the benchmarking process
authorPetka Antonov <petka_antonov@hotmail.com>
Mon, 23 Feb 2015 20:22:27 +0000 (22:22 +0200)
committerSam Roberts <sam@strongloop.com>
Tue, 24 Feb 2015 23:55:12 +0000 (15:55 -0800)
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

benchmark/common.js

index c4a5f7e..06f26d1 100644 (file)
@@ -145,6 +145,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)