From e012efca275976b9702e3c47c3919023708680cc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Apr 2021 21:59:47 +0300 Subject: Let's try testing for "is not quadratic" condition --- crates/test_utils/src/bench_fixture.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/test_utils') diff --git a/crates/test_utils/src/bench_fixture.rs b/crates/test_utils/src/bench_fixture.rs index 3a37c4473..979156263 100644 --- a/crates/test_utils/src/bench_fixture.rs +++ b/crates/test_utils/src/bench_fixture.rs @@ -8,7 +8,10 @@ use crate::project_root; pub fn big_struct() -> String { let n = 1_000; + big_struct_n(n) +} +pub fn big_struct_n(n: u32) -> String { let mut buf = "pub struct RegisterBlock {".to_string(); for i in 0..n { format_to!(buf, " /// Doc comment for {}.\n", i); -- cgit v1.2.3