diff options
Diffstat (limited to 'cli/bench/node_http.js')
-rw-r--r-- | cli/bench/node_http.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/bench/node_http.js b/cli/bench/node_http.js new file mode 100644 index 000000000..189098e4c --- /dev/null +++ b/cli/bench/node_http.js @@ -0,0 +1,9 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +const http = require("http"); +const port = process.argv[2] || "4544"; +console.log("port", port); +http + .Server((req, res) => { + res.end("Hello World"); + }) + .listen(port); |