Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-10-07 12:24:50 +0400
committerRyan Dahl <ry@tinyclouds.org>2009-10-07 12:24:50 +0400
commit1a2762b78e496dac4cc9fd0fb4ffb1d4f036692b (patch)
treecdef5a0cb4ee31394fc063548156fe9c6ebfe662 /benchmark/run.js
parentabbc624f52defe1fcf3972eb5d0e7cb734f51705 (diff)
Update benchmarks with new createChildProcess API
Diffstat (limited to 'benchmark/run.js')
-rw-r--r--benchmark/run.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/run.js b/benchmark/run.js
index 869ae55a63b..6379a16fe25 100644
--- a/benchmark/run.js
+++ b/benchmark/run.js
@@ -9,9 +9,8 @@ var benchmarks = [ "static_http_server.js"
var benchmark_dir = node.path.dirname(__filename);
function exec (script, callback) {
- var command = ARGV[0] + " " + node.path.join(benchmark_dir, script);
var start = new Date();
- var child = node.createChildProcess(command);
+ var child = node.createChildProcess(ARGV[0], [node.path.join(benchmark_dir, script)]);
child.addListener("exit", function (code) {
var elapsed = new Date() - start;
callback(elapsed, code);