From 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 8 Jan 2020 14:59:53 -0500 Subject: feat(flags): script arguments come after '--' (#3621) --- tools/http_benchmark.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/http_benchmark.py') 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) ] -- cgit v1.2.3