Set old/new from benchmark script args
This commit is contained in:
parent
ff56d6364e
commit
b36f11d7b5
@ -1,7 +1,8 @@
|
|||||||
path = require("path");
|
path = require("path");
|
||||||
|
|
||||||
var puts = require("sys").puts;
|
var puts = require("sys").puts;
|
||||||
var old = false;
|
|
||||||
|
var old = (process.argv[2] == 'old');
|
||||||
|
|
||||||
http = require(old ? "http_old" : 'http');
|
http = require(old ? "http_old" : 'http');
|
||||||
if (old) puts('old version');
|
if (old) puts('old version');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user