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:
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');