diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-08 14:59:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 14:59:53 -0500 |
commit | 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 (patch) | |
tree | ec851e15cb57c494f839de28abdb5a787487f8a5 /tools/http_benchmark.py | |
parent | 7d2d442a77343a3c4ab6c638bd817e51c6cadd2e (diff) |
feat(flags): script arguments come after '--' (#3621)
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-x | tools/http_benchmark.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py index 59edc8b93..5f185e93c 100755 --- a/tools/http_benchmark.py +++ b/tools/http_benchmark.py @@ -35,7 +35,7 @@ def get_port(port=None): def deno_tcp(deno_exe): port = get_port() deno_cmd = [ - deno_exe, "run", "--allow-net", "tools/deno_tcp.ts", + deno_exe, "run", "--allow-net", "tools/deno_tcp.ts", "--", server_addr(port) ] print "http_benchmark testing DENO tcp." @@ -46,7 +46,7 @@ def deno_tcp_current_thread(deno_exe): port = get_port() deno_cmd = [ deno_exe, "run", "--current-thread", "--allow-net", - "tools/deno_tcp.ts", + "tools/deno_tcp.ts", "--", server_addr(port) ] print "http_benchmark testing DENO tcp (single-thread)." @@ -56,7 +56,7 @@ def deno_tcp_current_thread(deno_exe): def deno_http(deno_exe): port = get_port() deno_cmd = [ - deno_exe, "run", "--allow-net", "std/http/http_bench.ts", + deno_exe, "run", "--allow-net", "std/http/http_bench.ts", "--", server_addr(port) ] print "http_benchmark testing DENO using net/http." @@ -67,7 +67,7 @@ def deno_tcp_proxy(deno_exe, hyper_hello_exe): port = get_port() origin_port = get_port() deno_cmd = [ - deno_exe, "run", "--allow-net", "tools/deno_tcp_proxy.ts", + deno_exe, "run", "--allow-net", "tools/deno_tcp_proxy.ts", "--", server_addr(port), server_addr(origin_port) ] @@ -82,7 +82,7 @@ def deno_http_proxy(deno_exe, hyper_hello_exe): port = get_port() origin_port = get_port() deno_cmd = [ - deno_exe, "run", "--allow-net", "tools/deno_http_proxy.ts", + deno_exe, "run", "--allow-net", "tools/deno_http_proxy.ts", "--", server_addr(port), server_addr(origin_port) ] |