Skip to content

Add serde-1.0.219 benchmark #2101

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 5, 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 @@ -49,6 +49,8 @@ They mostly consist of real-world crates.
binary crate.
- **serde-1.0.136**: A serialization/deserialization crate. Used by many other
Rust programs.
- **serde-1.0.219**: A serialization/deserialization crate. Used by many other
Rust programs.
- **serde_derive-1.0.136**: A proc-macro sub-crate used by `serde`. Used by
many other Rust programs. Stresses declarative macro expansion somewhat.
- **serde_derive-1.0.219**: A proc-macro sub-crate used by `serde`. Used by
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 @@ -220,6 +220,11 @@ path = "serde-1.0.136/**"
SPDX-FileCopyrightText = "serde contributors"
SPDX-License-Identifier = "MIT OR Apache-2.0"

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

[[annotations]]
path = "serde_derive-1.0.136/**"
SPDX-FileCopyrightText = "serde contributors"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "49d098debdf8b5c38bfb6868f455c6ce542c422c"
},
"path_in_vcs": "serde"
}
12 changes: 12 additions & 0 deletions collector/compile-benchmarks/serde-1.0.219/0-println.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/de/value.rs b/src/de/value.rs
index 8f9c0b48..2402c9ec 100644
--- a/src/de/value.rs
+++ b/src/de/value.rs
@@ -37,6 +37,7 @@ macro_rules! impl_copy_clone {

impl<$($lifetime,)* E> Clone for $ty<$($lifetime,)* E> {
fn clone(&self) -> Self {
+ println!();
*self
}
}
56 changes: 56 additions & 0 deletions collector/compile-benchmarks/serde-1.0.219/Cargo.lock

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

86 changes: 86 additions & 0 deletions collector/compile-benchmarks/serde-1.0.219/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
rust-version = "1.31"
name = "serde"
version = "1.0.219"
authors = [
"Erick Tryzelaar <[email protected]>",
"David Tolnay <[email protected]>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A generic serialization/deserialization framework"
homepage = "https://serde.rs"
documentation = "https://docs.rs/serde"
readme = "crates-io.md"
keywords = [
"serde",
"serialization",
"no_std",
]
categories = [
"encoding",
"no-std",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/serde-rs/serde"

[package.metadata.docs.rs]
features = [
"derive",
"rc",
"unstable",
]
rustdoc-args = [
"--generate-link-to-definition",
"--extern-html-root-url=core=https://doc.rust-lang.org",
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
"--extern-html-root-url=std=https://doc.rust-lang.org",
]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.playground]
features = [
"derive",
"rc",
]

[features]
alloc = []
default = ["std"]
derive = ["serde_derive"]
rc = []
std = []
unstable = []

[lib]
name = "serde"
path = "src/lib.rs"

[dependencies.serde_derive]
version = "1"
optional = true

[dev-dependencies.serde_derive]
version = "1"

[target."cfg(any())".dependencies.serde_derive]
version = "=1.0.219"

[workspace]
71 changes: 71 additions & 0 deletions collector/compile-benchmarks/serde-1.0.219/Cargo.toml.orig

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

Loading
Loading