diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-15 16:44:35 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-16 09:37:38 -0400 |
commit | c61a0f2f84e619a70704b59fd72cd7da863d4461 (patch) | |
tree | 275323c80a4791b311073150f1df8d98d3a8df1b /tools/node_http.js | |
parent | 62962e71fe244a4b0992185f2ba900ba3fd5005e (diff) |
First pass at http benchmark.
Diffstat (limited to 'tools/node_http.js')
-rw-r--r-- | tools/node_http.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/node_http.js b/tools/node_http.js new file mode 100644 index 000000000..dbe9de81a --- /dev/null +++ b/tools/node_http.js @@ -0,0 +1,8 @@ +const http = require("http"); +const port = process.argv[2] || "4544"; +console.log("port", port); +http + .Server((req, res) => { + res.end("Hello World\n"); + }) + .listen(port); |