We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970e902 commit 0281e1aCopy full SHA for 0281e1a
1 file changed
benchmark/http_simple.js
@@ -1,7 +1,10 @@
1
path = require("path");
2
3
var puts = require("sys").puts;
4
-http = require("http");
+var old = false;
5
+
6
+http = require(old ? "http_old" : 'http');
7
+if (old) puts('old version');
8
9
fixed = ""
10
for (var i = 0; i < 20*1024; i++) {
@@ -49,5 +52,6 @@ http.createServer(function (req, res) {
49
52
, "Content-Length": content_length
50
53
}
51
54
);
55
+ if (old) res.write(body, 'ascii');
56
res.close(body, 'ascii');
57
}).listen(8000);
0 commit comments