Skip to content

Commit afcc0a7

Browse files
committed
Add match-stress-enum benchmark
1 parent f7df7bc commit afcc0a7

File tree

4 files changed

+16418
-0
lines changed

4 files changed

+16418
-0
lines changed

collector/benchmarks/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ programs.
8585
- **many-assoc-items**: Contains a struct with many associated items, which
8686
caused [quadratic behavior](https://github.com/rust-lang/rust/issues/68957)
8787
in the past.
88+
- **match-stress-enum**: Contains a match against a huge enum, which used to
89+
have [quadratic runtime](https://github.com/rust-lang/rust/issues/7462).
8890
- **regression-31157**: A small program that caused a [large performance
8991
regression](https://github.com/rust-lang/rust/issues/31157) from the past.
9092
- **token-stream-stress**: Constructs a long token stream much like the `quote`

collector/benchmarks/match-stress-enum/Cargo.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "match-stress-enum"
3+
version = "0.1.0"
4+
5+
[dependencies]
6+
7+
[workspace]

0 commit comments

Comments
 (0)