summaryrefslogtreecommitdiff
path: root/tools/benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-xtools/benchmark.py12
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)