diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-15 19:21:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 19:21:35 -0500 |
commit | a4dde552de8fced4cfdff7f0127b51e1d2eabca5 (patch) | |
tree | 6590ed26f995522746948601b281987ece5c8ff3 /tools/throughput_benchmark.py | |
parent | 3eab20ce42458fced42dcd031958b07113322e0a (diff) |
Revert "feat(flags): script arguments come after '--'" (#3681)
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15d8c4a81362bb2d185b5c6013faa1d8.
BREAKING CHANGE
Diffstat (limited to 'tools/throughput_benchmark.py')
-rwxr-xr-x | tools/throughput_benchmark.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py index 4e285a7b8..f46503193 100755 --- a/tools/throughput_benchmark.py +++ b/tools/throughput_benchmark.py @@ -21,7 +21,7 @@ def cat(deno_exe, megs): size = megs * MB start = time.time() cmd = deno_exe + " run --allow-read " - cmd += "tests/cat.ts -- /dev/zero | head -c %s " % size + cmd += "tests/cat.ts /dev/zero | head -c %s " % size print cmd subprocess.check_output(cmd, shell=True) end = time.time() @@ -32,8 +32,7 @@ def tcp(deno_exe, megs): size = megs * MB # Run deno echo server in the background. args = [ - deno_exe, "run", "--allow-net", "tests/echo_server.ts", "--", - SERVER_ADDR + deno_exe, "run", "--allow-net", "tests/echo_server.ts", SERVER_ADDR ] print args echo_server = subprocess.Popen(args) |