diff options
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-x | tools/http_benchmark.py | 11 |
1 files changed, 11 insertions, 0 deletions
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), |