From 5513546d8972ff88ea3887aec15c93fd9a7cd650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20CORTIER?= Date: Sat, 28 Oct 2023 20:47:38 -0400 Subject: [PATCH] test: improve performance for property tests Set the opt-level to 3 as suggested by the proptest book. Reference: - https://proptest-rs.github.io/proptest/proptest/tips-and-best-practices.html#setting-opt-level --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c1818bc9..006c4577 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,5 +67,11 @@ inherits = "release" opt-level = "s" lto = true +[profile.test.package.proptest] +opt-level = 3 + +[profile.test.package.rand_chacha] +opt-level = 3 + [patch.crates-io] softbuffer = { git = "https://github.com/CBenoit/softbuffer.git", rev = "8a9e7f95e054f9af5752682aa5f27890aeb1b094" }