From 61eba02ffe187c4af7f004a8354f95cabae2ec8d Mon Sep 17 00:00:00 2001 From: Ammar Abou Zor Date: Tue, 7 Jan 2025 16:58:25 +0100 Subject: [PATCH] Max proptest optimizations increasing performance Proptest and its random number generator can be CPU intensive, therefore setting their optimizations level to max will have significant performance improvement for the tests. --- application/apps/indexer/stypes/Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/apps/indexer/stypes/Cargo.toml b/application/apps/indexer/stypes/Cargo.toml index 1f4191580..e61036c89 100644 --- a/application/apps/indexer/stypes/Cargo.toml +++ b/application/apps/indexer/stypes/Cargo.toml @@ -40,3 +40,11 @@ paste = "1.0" uuid = { workspace = true, features = ["serde", "v4"] } remove_dir_all = "1.0" ts-rs = { version = "10.1", features = ["uuid-impl"] } + +# Proptest and its random number generator can be CPU intensive, therefore setting their optimizations level +# to max will have significant performance improvement for the tests. +[profile.test.package.proptest] +opt-level = 3 + +[profile.test.package.rand_chacha] +opt-level = 3