diff options
author | Aleksey Kladov <[email protected]> | 2021-04-06 19:59:47 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-10 10:43:07 +0100 |
commit | e012efca275976b9702e3c47c3919023708680cc (patch) | |
tree | 498688bb1fcbf6f41665f6f86a0ec8930434c6f5 /crates/test_utils/src | |
parent | 00cdbceb9d7afdabc82788a88df88c6eb1035839 (diff) |
Let's try testing for "is not quadratic" condition
Diffstat (limited to 'crates/test_utils/src')
-rw-r--r-- | crates/test_utils/src/bench_fixture.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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; | |||
8 | 8 | ||
9 | pub fn big_struct() -> String { | 9 | pub fn big_struct() -> String { |
10 | let n = 1_000; | 10 | let n = 1_000; |
11 | big_struct_n(n) | ||
12 | } | ||
11 | 13 | ||
14 | pub fn big_struct_n(n: u32) -> String { | ||
12 | let mut buf = "pub struct RegisterBlock {".to_string(); | 15 | let mut buf = "pub struct RegisterBlock {".to_string(); |
13 | for i in 0..n { | 16 | for i in 0..n { |
14 | format_to!(buf, " /// Doc comment for {}.\n", i); | 17 | format_to!(buf, " /// Doc comment for {}.\n", i); |