summaryrefslogtreecommitdiff
path: root/tools/http_benchmark.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-09-20 18:32:18 -0400
committerGitHub <noreply@github.com>2019-09-20 18:32:18 -0400
commit97bb2bdb79cbd0a400c643e7be0029440cb15633 (patch)
tree92c883d38b7af413fcbfbac82f17775a7064dfec /tools/http_benchmark.py
parent93b7acf99d6456e6e194c03f024b788ce5adf20e (diff)
dial/listen API change (#3000)
Previously: dial("tcp", "deno.land:80") Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" }) Similarly with listen().
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-xtools/http_benchmark.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py
index 5fac44e78..39bedae8c 100755
--- a/tools/http_benchmark.py
+++ b/tools/http_benchmark.py
@@ -49,13 +49,7 @@ def deno_http(deno_exe):
"js/deps/https/deno.land/std/http/http_bench.ts", addr
]
print "http_benchmark testing DENO using net/http."
- return run(
- deno_cmd,
- addr,
- merge_env={
- # Load from //js/deps/https/deno.land/net/ submodule.
- "DENO_DIR": os.path.join(util.root_path, "js")
- })
+ return run(deno_cmd, addr)
def deno_tcp_proxy(deno_exe, hyper_hello_exe):
@@ -69,7 +63,6 @@ def deno_tcp_proxy(deno_exe, hyper_hello_exe):
return run(
deno_cmd,
addr,
- merge_env={"DENO_DIR": os.path.join(util.root_path, "js")},
origin_cmd=http_proxy_origin(hyper_hello_exe, origin_addr))
@@ -84,7 +77,6 @@ def deno_http_proxy(deno_exe, hyper_hello_exe):
return run(
deno_cmd,
addr,
- merge_env={"DENO_DIR": os.path.join(util.root_path, "js")},
origin_cmd=http_proxy_origin(hyper_hello_exe, origin_addr))