From b2c2da216f684c0fc55ce2ea60fcc36323c98a04 Mon Sep 17 00:00:00 2001 From: Alexander Rodin Date: Tue, 14 Apr 2020 19:31:42 +0300 Subject: [PATCH 1/2] perf(testing): Enable optimizations for benchmarks Signed-off-by: Alexander Rodin --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 27bdba5847dfc..f02ca034e7cd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,11 @@ readme = "README.md" publish = false [profile.bench] -debug = true +[profile.bench] +debug = false +opt-level = 3 +lto = true +codegen-units = 1 [package.metadata.deb] maintainer-scripts = "distribution/debian/scripts/" From 87059483045678c5006a9f4d815b9f0347570397 Mon Sep 17 00:00:00 2001 From: Alexander Rodin Date: Tue, 14 Apr 2020 19:38:49 +0300 Subject: [PATCH 2/2] Remove duplicated line Signed-off-by: Alexander Rodin --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f02ca034e7cd9..b4179dd855f56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ license-file = "LICENSE" readme = "README.md" publish = false -[profile.bench] [profile.bench] debug = false opt-level = 3