We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51c1526 commit 54c8ea5Copy full SHA for 54c8ea5
1 file changed
benchmark/http_simple.js
@@ -1,23 +1,25 @@
1
-libDir = process.path.join(process.path.dirname(__filename), "../lib");
+path = require("path");
2
+
3
+libDir = path.join(path.dirname(__filename), "../lib");
4
require.paths.unshift(libDir);
5
6
process.mixin(require("sys"));
-http = require("sys");
7
+http = require("http");
8
9
fixed = ""
10
for (var i = 0; i < 20*1024; i++) {
11
fixed += "C";
12
}
13
14
stored = {};
15
16
http.createServer(function (req, res) {
17
var commands = req.uri.path.split("/");
18
var command = commands[1];
19
var body = "";
20
var arg = commands[2];
21
var status = 200;
22
- p(req.uri.params);
-
23
if (command == "bytes") {
24
var n = parseInt(arg, 10)
25
if (n <= 0)
0 commit comments