From c61a0f2f84e619a70704b59fd72cd7da863d4461 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 15 Oct 2018 16:44:35 -0400 Subject: First pass at http benchmark. --- tools/benchmark.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/benchmark.py') diff --git a/tools/benchmark.py b/tools/benchmark.py index 4422764aa..856ee3c85 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -14,6 +14,7 @@ from util import run, run_output, root_path, build_path, executable_suffix import tempfile import http_server import throughput_benchmark +from http_benchmark import http_benchmark # The list of the tuples of the benchmark name and arguments exec_time_benchmarks = [ @@ -183,6 +184,7 @@ def main(argv): # pipe. if os.name != 'nt': new_data["throughput"] = run_throughput(deno_path) + new_data["req_per_sec"] = http_benchmark(deno_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