diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-10 11:01:03 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-10 11:01:03 +0100 |
commit | e357b6bb36828ecf3404fcc382da09216eef0997 (patch) | |
tree | 498688bb1fcbf6f41665f6f86a0ec8930434c6f5 /crates/test_utils/src | |
parent | 00cdbceb9d7afdabc82788a88df88c6eb1035839 (diff) | |
parent | e012efca275976b9702e3c47c3919023708680cc (diff) |
Merge #8384
8384: add is quadratic test r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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); |