From 3cc90d9bcf4be58bf88b433ae410f42fa4ad69c7 Mon Sep 17 00:00:00 2001 From: Bernard Lin Date: Sun, 24 Mar 2019 23:36:27 -0400 Subject: Add benchmark for max latency (#1975) --- tools/benchmark.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tools/benchmark.py') diff --git a/tools/benchmark.py b/tools/benchmark.py index 53037b1e7..6a4ec29c8 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -206,8 +206,16 @@ def main(argv): hyper_hello_path = os.path.join(build_dir, "hyper_hello") core_http_bench_exe = os.path.join(build_dir, "deno_core_http_bench") new_data["throughput"] = run_throughput(deno_path) - new_data["req_per_sec"] = http_benchmark(deno_path, hyper_hello_path, - core_http_bench_exe) + stats = http_benchmark(deno_path, hyper_hello_path, + core_http_bench_exe) + new_data["req_per_sec"] = { + k: v["req_per_sec"] + for k, v in stats.items() + } + new_data["max_latency"] = { + k: v["max_latency"] + for k, v in stats.items() + } 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