From 5d7afdf62748c2d75e448e2d8b1dee2f2a62790c Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 1 Sep 2026 00:02:42 +0200 Subject: [PATCH 1/3] perf: improved release/bench settings performance --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5bfe44e..5c0b7ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,16 @@ keywords = ["small", "vec", "vector", "stack", "no_std"] categories = ["data-structures"] exclude = [".gitignore", "tests/", "fuzz/", "benches/", ".github/"] +[profile.bench] +lto = "fat" +codegen-units = 1 +opt-level = 3 +debug = false +strip = true + +[profile.release] +opt-level = 3 + [features] std = [] specialization = [] From afbcde21249fbdd5bf9886f6b3e55c32539a8d12 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 1 Sep 2026 02:44:05 +0200 Subject: [PATCH 2/3] perf: removed release profile overrides --- Cargo.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5c0b7ea..5eb5aef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,9 +18,6 @@ opt-level = 3 debug = false strip = true -[profile.release] -opt-level = 3 - [features] std = [] specialization = [] From 4d8b86c2d4fd16336f5625d21a357ec084d11867 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 1 Sep 2026 15:39:48 +0200 Subject: [PATCH 3/3] feat: increase bench time --- benches/bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index 1bb0107..115354b 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -385,8 +385,8 @@ fn bench_macro_from_list_vec(c: &mut Criterion) { criterion_group!( name = benches; config = Criterion::default() - .warm_up_time(Duration::from_millis(200)) - .measurement_time(Duration::from_millis(700)); + .warm_up_time(Duration::from_millis(400)) + .measurement_time(Duration::from_millis(1100)); targets = bench_push, bench_push_small,