From 31f32ed8c4082d36ad2a4ea460366c0d57a5ddbc Mon Sep 17 00:00:00 2001 From: Valentin Anger Date: Fri, 28 Aug 2020 15:03:50 +0200 Subject: Move benchmarks to Rust (#7134) All benchmarks are done in Rust and can be invoked with `cargo bench`. Currently this has it's own "harness" that behaves like `./tools/benchmark.py` did. Because of this tests inside `cli/bench` are currently not run. This should be switched to the language provided harness once the `#[bench]` attribute has been stabilized. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 80e6ce4e6..91e591b73 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,8 @@ exclude = [ codegen-units = 1 lto = true opt-level = 'z' # Optimize for size + +[profile.bench] +codegen-units = 1 +lto = true +opt-level = 'z' # Optimize for size -- cgit v1.2.3