diff options
author | Bernard Lin <bernardlin12@gmail.com> | 2019-03-24 23:36:27 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-24 23:36:27 -0400 |
commit | 3cc90d9bcf4be58bf88b433ae410f42fa4ad69c7 (patch) | |
tree | 8e92d0266bd71d5c92c2352e943f5b78ef19a097 /tools/benchmark.py | |
parent | 129eae0265e3bd93c26c272d253ae9cbc6b88991 (diff) |
Add benchmark for max latency (#1975)
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-x | tools/benchmark.py | 12 |
1 files changed, 10 insertions, 2 deletions
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) |