projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff56d63
)
Set old/new from benchmark script args
author
Ryan Dahl
<ry@tinyclouds.org>
Fri, 9 Apr 2010 17:42:20 +0000
(10:42 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 9 Apr 2010 17:42:20 +0000
(10:42 -0700)
benchmark/http_simple.js
patch
|
blob
|
history
diff --git
a/benchmark/http_simple.js
b/benchmark/http_simple.js
index
28c215a
..
e1eb6b5
100644
(file)
--- 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');