Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2010 18:39
Show Gist options
  • Save anonymous/389784 to your computer and use it in GitHub Desktop.
Save anonymous/389784 to your computer and use it in GitHub Desktop.
var sys = require("sys");
var http = require("http");
var server = http.createServer(function (request, response) {
request.addListener('data', function (chunk) { postData.push(chunk); })
.addListener('end', function () {
setTimeout(function () {
sys.puts(request.method + " " + request.url);
response.writeHead(200, { "Content-type": "text/plain" });
response.write("Hello", "utf8");
response.end();
}, 500);
});
}).listen(8181, "localhost");
/********************************************************/
ab -n 100 -c 1 http://127.0.0.1:8181/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment