From aa66ef98ea6144abd2d2714fef1dfc8046e01775 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 18 Dec 2018 21:09:30 -0500 Subject: travis: Set CARGO_HOME to third_party/rust_crates (#1370) Adds prebuilt hyperfine and sccache binaries Only build test_cc for LSAN Add Cargo.lock Only run benchmarks in master --- tools/benchmark.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/benchmark.py') diff --git a/tools/benchmark.py b/tools/benchmark.py index fe71cc88e..9217eceec 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -16,6 +16,7 @@ import tempfile import http_server import throughput_benchmark from http_benchmark import http_benchmark +import prebuilt # The list of the tuples of the benchmark name and arguments exec_time_benchmarks = [ @@ -156,7 +157,9 @@ def main(argv): os.chdir(root_path) import_data_from_gh_pages() - # TODO: Use hyperfine in //third_party + + prebuilt.load_hyperfine() + run([ "hyperfine", "--ignore-failure", "--export-json", benchmark_file, "--warmup", "3" -- cgit v1.2.3