Skip to content

Add syn-2.0.101 benchmark #2094

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 1, 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions collector/compile-benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ They mostly consist of real-world crates.
built with `--features=stm32f410` to have faster benchmarking times.
- **syn-1.0.89**: A library for parsing Rust code. An important part of the Rust
ecosystem.
- **syn-2.0.101**: A library for parsing Rust code. An important part of the Rust
ecosystem.
- **typenum-1.17.0**: A library that encodes integer computation within the trait system. Serves as
a stress test for the trait solver, but at the same time it is also a very popular crate.
- **typenum-1.18.0**: A library that encodes integer computation within the trait system. Serves as
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 @@ -240,6 +240,11 @@ path = "syn-1.0.89/**"
SPDX-FileCopyrightText = "syn contributors"
SPDX-License-Identifier = "MIT OR Apache-2.0"

[[annotations]]
path = "syn-2.0.101/**"
SPDX-FileCopyrightText = "syn contributors"
SPDX-License-Identifier = "MIT OR Apache-2.0"

[[annotations]]
path = "token-stream-stress/**"
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
Expand Down
6 changes: 6 additions & 0 deletions collector/compile-benchmarks/syn-2.0.101/.cargo_vcs_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "58336a3fb49b63aae0ae2e708a69167543ff0e97"
},
"path_in_vcs": ""
}
12 changes: 12 additions & 0 deletions collector/compile-benchmarks/syn-2.0.101/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 cc189d1a..6a1c6ebb 100644
--- a/src/lifetime.rs
+++ b/src/lifetime.rs
@@ -36,6 +36,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
Loading