From b36f11d7b50e12838b414b866878748109c056ec Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 9 Apr 2010 10:42:20 -0700 Subject: [PATCH] Set old/new from benchmark script args --- benchmark/http_simple.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 28c215a..e1eb6b5 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'); -- 2.7.4