Skip to content
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

Add benchmark with many associated items #618

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions collector/benchmarks/README.md
Original file line number Diff line number Diff line change
@@ -77,6 +77,9 @@ programs.
the past.
- **issue-46449**: A small program that caused [poor
performance](https://github.com/rust-lang/rust/issues/46449) in the past.
- **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.
- **regression-31157**: A small program that caused a [large performance
regression](https://github.com/rust-lang/rust/issues/31157) from the past.
- **token-stream-stress**: Constructs a long token stream much like the `quote`
5 changes: 5 additions & 0 deletions collector/benchmarks/many-assoc-items/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions collector/benchmarks/many-assoc-items/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[package]
name = "many-assoc-items"
version = "0.1.0"
edition = "2018"
10,000 changes: 10,000 additions & 0 deletions collector/benchmarks/many-assoc-items/src/lib.rs

Large diffs are not rendered by default.