summaryrefslogtreecommitdiff
path: root/tools/http_benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-xtools/http_benchmark.py23
1 files changed, 16 insertions, 7 deletions
diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py
index fbd5dc746..17420fe84 100755
--- a/tools/http_benchmark.py
+++ b/tools/http_benchmark.py
@@ -85,8 +85,13 @@ def deno_http_proxy(deno_exe, hyper_hello_exe):
origin_cmd=http_proxy_origin(hyper_hello_exe, origin_port))
-def deno_core_http_bench(exe):
- print "http_benchmark testing deno_core_http_bench"
+def core_http_bin_ops(exe):
+ print "http_benchmark testing CORE http_bench_bin_ops"
+ return run([exe], 4544)
+
+
+def core_http_json_ops(exe):
+ print "http_benchmark testing CORE http_bench_json_ops"
return run([exe], 4544)
@@ -134,10 +139,12 @@ def hyper_http(hyper_hello_exe):
def http_benchmark(build_dir):
- hyper_hello_exe = os.path.join(build_dir, "test_server")
- deno_core_http_bench_exe = os.path.join(build_dir,
- "examples/deno_core_http_bench")
deno_exe = os.path.join(build_dir, "deno")
+ hyper_hello_exe = os.path.join(build_dir, "test_server")
+ core_http_bin_ops_exe = os.path.join(build_dir,
+ "examples/http_bench_bin_ops")
+ core_http_json_ops_exe = os.path.join(build_dir,
+ "examples/http_bench_json_ops")
return {
# "deno_tcp" was once called "deno"
"deno_tcp": deno_tcp(deno_exe),
@@ -146,8 +153,10 @@ def http_benchmark(build_dir):
# TODO(ry) deno_proxy disabled to make fetch() standards compliant.
# "deno_proxy": deno_http_proxy(deno_exe, hyper_hello_exe),
"deno_proxy_tcp": deno_tcp_proxy(deno_exe, hyper_hello_exe),
- # "deno_core_http_bench" was once called "deno_core_single"
- "deno_core_http_bench": deno_core_http_bench(deno_core_http_bench_exe),
+ # "core_http_bin_ops" was once called "deno_core_single"
+ # "core_http_bin_ops" was once called "deno_core_http_bench"
+ "core_http_bin_ops": core_http_bin_ops(core_http_bin_ops_exe),
+ "core_http_json_ops": core_http_json_ops(core_http_json_ops_exe),
# "node_http" was once called "node"
"node_http": node_http(),
"node_proxy": node_http_proxy(hyper_hello_exe),