diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 4b550283b8a..74ba4d77680 100644 --- a/benchmark/http_simple.js +++ b/benchmark/http_simple.js @@ -54,6 +54,12 @@ var server = http.createServer(function (req, res) { } else if (command == "fixed") { body = fixed; + } else if (command == "echo") { + res.writeHead(200, { "Content-Type": "text/plain", + "Transfer-Encoding": "chunked" }); + req.pipe(res); + return; + } else { status = 404; body = "not found\n";