Skip to content

Commit 6a70166

Browse files
authored
Merge pull request #2143 from Kobzol/synthetic-large-workspace
Add `large-workspace` stress test benchmark
2 parents c5a4a9e + d23ce95 commit 6a70166

File tree

1,828 files changed

+41569
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,828 files changed

+41569
-0
lines changed

collector/compile-benchmarks/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ 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 (hundreds) of (both directly and indirectly) dependent crates,
91+
and instantiating generic/inlined code from them.
8992
- **many-assoc-items**: Contains a struct with many associated items, which
9093
caused [quadratic behavior](https://github.com/rust-lang/rust/issues/68957)
9194
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 a0961df3..aee8286c 100644
3+
--- a/src/main.rs
4+
+++ b/src/main.rs
5+
@@ -397,7 +397,7 @@ fn main() {
6+
dep_541::code_generic(1u32);
7+
dep_542::code();
8+
dep_542::code_inlined();
9+
- dep_542::code_generic(1u32);
10+
+ dep_542::code_generic(2u32);
11+
dep_543::code();
12+
dep_543::code_inlined();
13+
dep_543::code_generic(1u32);

0 commit comments

Comments
 (0)