summaryrefslogtreecommitdiff
path: root/tools/throughput_benchmark.py
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2020-01-08 14:59:53 -0500
committerGitHub <noreply@github.com>2020-01-08 14:59:53 -0500
commit2d5457df15d8c4a81362bb2d185b5c6013faa1d8 (patch)
treeec851e15cb57c494f839de28abdb5a787487f8a5 /tools/throughput_benchmark.py
parent7d2d442a77343a3c4ab6c638bd817e51c6cadd2e (diff)
feat(flags): script arguments come after '--' (#3621)
Diffstat (limited to 'tools/throughput_benchmark.py')
-rwxr-xr-xtools/throughput_benchmark.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py
index f46503193..4e285a7b8 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,7 +32,8 @@ 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)