diff --git a/Cargo.toml b/Cargo.toml index 5bfe44e..5eb5aef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,13 @@ 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 + [features] std = [] specialization = [] 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,