Remove test_server dependency from benchmarks (#6645)

This commit is contained in:
Ryan Dahl 2020-07-05 19:00:07 -04:00 committed by GitHub
parent d4f9457536
commit f35edc574a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,7 @@ import json
import time
import tempfile
import subprocess
from util import (build_path, executable_suffix, root_path, run, run_output,
build_mode)
from util import build_path, executable_suffix, root_path, run, run_output
import third_party
from http_benchmark import http_benchmark
import throughput_benchmark
@ -252,11 +251,7 @@ def main():
# TODO(ry) The "benchmark" benchmark should actually be called "exec_time".
# When this is changed, the historical data in gh-pages branch needs to be
# changed too.
server_cmd = os.path.join("target", build_mode(), "test_server")
p = subprocess.Popen([server_cmd])
new_data["benchmark"] = run_exec_time(deno_exe, build_dir)
p.kill()
p.wait()
new_data["binary_size"] = get_binary_sizes(build_dir)
new_data["bundle_size"] = bundle_benchmark(deno_exe)