diff options
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-x | tools/http_benchmark.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py index 4f2c768fd..1a56bd1f1 100755 --- a/tools/http_benchmark.py +++ b/tools/http_benchmark.py @@ -5,6 +5,7 @@ import sys import time import subprocess import util +import third_party # Some of the benchmarks in this file have been renamed. In case the history # somehow gets messed up: @@ -193,8 +194,9 @@ def run(server_cmd, port, merge_env=None, origin_cmd=None): time.sleep(5) # wait for server to wake up. TODO racy. try: - cmd = "third_party/wrk/%s/wrk -d %s --latency http://127.0.0.1:%s/" % ( - util.platform(), DURATION, port) + wrk = third_party.get_prebuilt_tool_path("wrk") + assert os.path.exists(wrk) + cmd = "%s -d %s --latency http://127.0.0.1:%s/" % (wrk, DURATION, port) print cmd output = subprocess.check_output(cmd, shell=True) stats = util.parse_wrk_output(output) |