Skip to content

Commit 7adea5f

Browse files
Merge pull request #769 from ishitatsuyuki/match-stress-enum
Add match-stress-enum benchmark
2 parents f7df7bc + afcc0a7 commit 7adea5f

File tree

4 files changed

+16418
-0
lines changed

4 files changed

+16418
-0
lines changed

collector/benchmarks/README.md

+2
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

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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)