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>2010-04-09 21:42:20 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-04-09 21:42:20 +0400
commitb36f11d7b50e12838b414b866878748109c056ec (patch)
tree798f8fdf2446d3b9f6063a117179d14da8bb2b53 /benchmark
parentff56d6364eb09079b1ab6e9ef32d66c2cb4c0bfd (diff)
Set old/new from benchmark script args
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http_simple.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js
index 28c215aaf5e..e1eb6b57799 100644
--- a/benchmark/http_simple.js
+++ b/benchmark/http_simple.js
@@ -1,7 +1,8 @@
path = require("path");
var puts = require("sys").puts;
-var old = false;
+
+var old = (process.argv[2] == 'old');
http = require(old ? "http_old" : 'http');
if (old) puts('old version');