Skip to content

Commit 74b6d4d

Browse files
committed
Add large-workspace stress test benchmark
1 parent 8627cf5 commit 74b6d4d

File tree

8 files changed

+4605
-0
lines changed

8 files changed

+4605
-0
lines changed

collector/compile-benchmarks/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ compiler in interesting ways.
8686
- **issue-88862**: A MCVE of a program that had a
8787
[severe performance regression](https://github.com/rust-lang/rust/issues/88862)
8888
when trying to normalize large opaque types with late-bound regions.
89+
- **large-workspace**: A stress test for searching for and loading metadata of a
90+
large number (500) of dependent crates, and instantiating generic/inlined code from them.
8991
- **many-assoc-items**: Contains a struct with many associated items, which
9092
caused [quadratic behavior](https://github.com/rust-lang/rust/issues/68957)
9193
in the past.

collector/compile-benchmarks/REUSE.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ path = "issue-88862/**"
150150
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
151151
SPDX-License-Identifier = "MIT"
152152

153+
[[annotations]]
154+
path = "large-workspace/**"
155+
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
156+
SPDX-License-Identifier = "MIT"
157+
153158
[[annotations]]
154159
path = "libc-0.2.172/**"
155160
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/main.rs b/src/main.rs
2+
index 801d39e1..b0c76e19 100644
3+
--- a/src/main.rs
4+
+++ b/src/main.rs
5+
@@ -46,7 +46,7 @@ fn main() {
6+
dep14::code_generic(1u32);
7+
dep15::code();
8+
dep15::code_inlined();
9+
- dep15::code_generic(1u32);
10+
+ dep15::code_generic(2u32);
11+
dep16::code();
12+
dep16::code_inlined();
13+
dep16::code_generic(1u32);

0 commit comments

Comments
 (0)