Set old/new from benchmark script args
authorRyan Dahl <ry@tinyclouds.org>
Fri, 9 Apr 2010 17:42:20 +0000 (10:42 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 9 Apr 2010 17:42:20 +0000 (10:42 -0700)
benchmark/http_simple.js

index 28c215a..e1eb6b5 100644 (file)
@@ -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');