summaryrefslogtreecommitdiff
path: root/tools/http_benchmark.py
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-02-06 15:34:40 -0800
committerBert Belder <bertbelder@gmail.com>2020-02-07 18:17:03 -0800
commitf650c3edb3081ac0433b338c0c99418171656dd1 (patch)
treec97529873ec2f4c494a8efb1638886527a31c4f9 /tools/http_benchmark.py
parent25467aa7c7852c3695091a547ffac4857478c037 (diff)
Refactor deno_core_http_bench and make it single-threaded (#3903)
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-xtools/http_benchmark.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py
index 056376128..05cd542e3 100755
--- a/tools/http_benchmark.py
+++ b/tools/http_benchmark.py
@@ -82,9 +82,9 @@ def deno_http_proxy(deno_exe, hyper_hello_exe):
origin_cmd=http_proxy_origin(hyper_hello_exe, origin_port))
-def deno_core_single(exe):
- print "http_benchmark testing deno_core_single"
- return run([exe, "--single-thread"], 4544)
+def deno_core_http_bench(exe):
+ print "http_benchmark testing deno_core_http_bench"
+ return run([exe], 4544)
def node_http():
@@ -132,8 +132,8 @@ def hyper_http(hyper_hello_exe):
def http_benchmark(build_dir):
hyper_hello_exe = os.path.join(build_dir, "hyper_hello")
- core_http_bench_exe = os.path.join(build_dir,
- "examples/deno_core_http_bench")
+ deno_core_http_bench_exe = os.path.join(build_dir,
+ "examples/deno_core_http_bench")
deno_exe = os.path.join(build_dir, "deno")
return {
# "deno_tcp" was once called "deno"
@@ -142,7 +142,8 @@ def http_benchmark(build_dir):
"deno_http": deno_http(deno_exe),
"deno_proxy": deno_http_proxy(deno_exe, hyper_hello_exe),
"deno_proxy_tcp": deno_tcp_proxy(deno_exe, hyper_hello_exe),
- "deno_core_single": deno_core_single(core_http_bench_exe),
+ # "deno_core_http_bench" was once called "deno_core_single"
+ "deno_core_http_bench": deno_core_http_bench(deno_core_http_bench_exe),
# "node_http" was once called "node"
"node_http": node_http(),
"node_proxy": node_http_proxy(hyper_hello_exe),