summaryrefslogtreecommitdiff
path: root/tools/http_benchmark.py
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-10-28 22:04:24 -0400
committerGitHub <noreply@github.com>2019-10-28 22:04:24 -0400
commit38f01f73a485def7cf5d391b18359db2b509782d (patch)
tree258987728efbbfedcd917ab15441d097ae8447c8 /tools/http_benchmark.py
parenta7992e77037353ee4c7d3d480dcbd907961087bd (diff)
Move prebuilt binaries to third_party (#3227)
Diffstat (limited to 'tools/http_benchmark.py')
-rwxr-xr-xtools/http_benchmark.py6
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)