From f6a9d7d7172df6422f895dcfe6f4267ad1b472da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 3 May 2019 23:15:16 +0200 Subject: add "deno run" subcommand (#2215) --- tools/throughput_benchmark.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/throughput_benchmark.py') diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py index 712edfe43..9343d9613 100755 --- a/tools/throughput_benchmark.py +++ b/tools/throughput_benchmark.py @@ -19,7 +19,8 @@ ADDR = "127.0.0.1:4544" def cat(deno_exe, megs): size = megs * MB start = time.time() - cmd = deno_exe + " --allow-read tests/cat.ts /dev/zero | head -c %s " % size + cmd = deno_exe + " run --allow-read " + cmd += "tests/cat.ts /dev/zero | head -c %s " % size print cmd subprocess.check_output(cmd, shell=True) end = time.time() @@ -30,7 +31,7 @@ def tcp(deno_exe, megs): size = megs * MB # Run deno echo server in the background. echo_server = subprocess.Popen( - [deno_exe, "--allow-net", "tests/echo_server.ts", ADDR]) + [deno_exe, "run", "--allow-net", "tests/echo_server.ts", ADDR]) time.sleep(5) # wait for deno to wake up. TODO racy. try: -- cgit v1.2.3