Skip to content

Add syn-1.0.89 benchmark #1240

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
Mar 25, 2022
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions collector/benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ They mostly consist of real-world crates.
Rust programs.
- **stm32f4**: A crate that has many thousands of blanket impl blocks.
- **stm32f4-0.14.0**: A crate that has many thousands of blanket impl blocks.
- **syn**: A library for parsing Rust code. An important part of the Rust
- **syn-1.0.89**: A library for parsing Rust code. An important part of the Rust
ecosystem.
- **unicode_normalization**: Unicode character composition and decomposition
utilities. Uses huge `match` statements that stress the compiler in unusual
Expand Down Expand Up @@ -143,6 +143,6 @@ Rust code being written today.
- **piston-image**: See above.
- **style-servo**: An old version of Servo's `style` crate. A large crate, and
one used by old versions of Firefox.
- **syn**: See above.
- **syn**: See above. This is an older version (0.11.11) of the crate.
- **tokio-webpush-simple**: A simple web server built with a very old version
of tokio. Uses futures a lot, but doesn't use `async`/`await`.
6 changes: 6 additions & 0 deletions collector/benchmarks/syn-1.0.89/.cargo_vcs_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "8d4eb4c597389b023b779621d8879641621d44e5"
},
"path_in_vcs": ""
}
12 changes: 12 additions & 0 deletions collector/benchmarks/syn-1.0.89/0-println.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/lifetime.rs b/src/lifetime.rs
index 5dc1753a..61f28dde 100644
--- a/src/lifetime.rs
+++ b/src/lifetime.rs
@@ -37,6 +37,7 @@ impl Lifetime {
/// # }
/// ```
pub fn new(symbol: &str, span: Span) -> Self {
+ println!("testing");
if !symbol.starts_with('\'') {
panic!(
"lifetime name must start with apostrophe as in \"'a\", got {:?}",
Loading