From 86409eb8369107a4c4944d3db0090ffc79395823 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Sat, 20 Oct 2018 19:56:16 -0700 Subject: Add Rust hyper http benchmark (#1043) * Add go net/http benchmark * Forget about Go. Let's do Rust Hyper * Update BUILD.gn * Rename --- tools/benchmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/benchmark.py') diff --git a/tools/benchmark.py b/tools/benchmark.py index 943883f8f..4bdd3b39a 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -184,8 +184,9 @@ def main(argv): # Cannot run throughput benchmark on windows because they don't have nc or # pipe. if os.name != 'nt': + hyper_hello_path = os.path.join(build_dir, "hyper_hello") new_data["throughput"] = run_throughput(deno_path) - new_data["req_per_sec"] = http_benchmark(deno_path) + new_data["req_per_sec"] = http_benchmark(deno_path, hyper_hello_path) if "linux" in sys.platform: # Thread count test, only on linux new_data["thread_count"] = run_thread_count_benchmark(deno_path) -- cgit v1.2.3