From e7cee29c849286f9b492eb404634a0387b9a75a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 31 Jul 2019 17:02:20 +0200 Subject: Add --current-thread flag (#2702) --- tools/http_benchmark.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/http_benchmark.py') diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py index 63f3e4ce5..e3674d095 100755 --- a/tools/http_benchmark.py +++ b/tools/http_benchmark.py @@ -32,6 +32,16 @@ def deno_tcp(deno_exe): return run(deno_cmd, addr) +def deno_tcp_current_thread(deno_exe): + addr = get_addr() + deno_cmd = [ + deno_exe, "run", "--current-thread", "--allow-net", + "tools/deno_tcp.ts", addr + ] + print "http_benchmark testing DENO." + return run(deno_cmd, addr) + + def deno_http(deno_exe): addr = get_addr() deno_cmd = [ @@ -146,6 +156,7 @@ def http_benchmark(build_dir): return { # "deno_tcp" was once called "deno" "deno_tcp": deno_tcp(deno_exe), + "deno_tcp_current_thread": deno_tcp_current_thread(deno_exe), # "deno_http" was once called "deno_net_http" "deno_http": deno_http(deno_exe), "deno_proxy": deno_http_proxy(deno_exe, hyper_hello_exe), -- cgit v1.2.3