Skip to content

Add large-workspace stress test benchmark #2143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions collector/compile-benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ compiler in interesting ways.
- **issue-88862**: A MCVE of a program that had a
[severe performance regression](https://github.com/rust-lang/rust/issues/88862)
when trying to normalize large opaque types with late-bound regions.
- **large-workspace**: A stress test for searching for and loading metadata of a
large number (hundreds) of (both directly and indirectly) dependent crates,
and instantiating generic/inlined code from them.
- **many-assoc-items**: Contains a struct with many associated items, which
caused [quadratic behavior](https://github.com/rust-lang/rust/issues/68957)
in the past.
Expand Down
5 changes: 5 additions & 0 deletions collector/compile-benchmarks/REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ path = "issue-88862/**"
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = "large-workspace/**"
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = "libc-0.2.172/**"
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
Expand Down
13 changes: 13 additions & 0 deletions collector/compile-benchmarks/large-workspace/0-println.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/main.rs b/src/main.rs
index a0961df3..aee8286c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -397,7 +397,7 @@ fn main() {
dep_541::code_generic(1u32);
dep_542::code();
dep_542::code_inlined();
- dep_542::code_generic(1u32);
+ dep_542::code_generic(2u32);
dep_543::code();
dep_543::code_inlined();
dep_543::code_generic(1u32);
Loading
Loading