diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-04-09 21:42:20 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-04-09 21:42:20 +0400 |
commit | b36f11d7b50e12838b414b866878748109c056ec (patch) | |
tree | 798f8fdf2446d3b9f6063a117179d14da8bb2b53 /benchmark | |
parent | ff56d6364eb09079b1ab6e9ef32d66c2cb4c0bfd (diff) |
Set old/new from benchmark script args
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http_simple.js | 3 |
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'); |