Skip to content

Commit 03ae573

Browse files
authored
Merge pull request #2101 from nnethercote/add-serde
Add `serde-1.0.219` benchmark
2 parents 18437e0 + 17facec commit 03ae573

32 files changed

+16915
-0
lines changed

collector/compile-benchmarks/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ They mostly consist of real-world crates.
4949
binary crate.
5050
- **serde-1.0.136**: A serialization/deserialization crate. Used by many other
5151
Rust programs.
52+
- **serde-1.0.219**: A serialization/deserialization crate. Used by many other
53+
Rust programs.
5254
- **serde_derive-1.0.136**: A proc-macro sub-crate used by `serde`. Used by
5355
many other Rust programs. Stresses declarative macro expansion somewhat.
5456
- **serde_derive-1.0.219**: A proc-macro sub-crate used by `serde`. Used by

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ path = "serde-1.0.136/**"
220220
SPDX-FileCopyrightText = "serde contributors"
221221
SPDX-License-Identifier = "MIT OR Apache-2.0"
222222

223+
[[annotations]]
224+
path = "serde-1.0.219/**"
225+
SPDX-FileCopyrightText = "serde contributors"
226+
SPDX-License-Identifier = "MIT OR Apache-2.0"
227+
223228
[[annotations]]
224229
path = "serde_derive-1.0.136/**"
225230
SPDX-FileCopyrightText = "serde contributors"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "49d098debdf8b5c38bfb6868f455c6ce542c422c"
4+
},
5+
"path_in_vcs": "serde"
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/de/value.rs b/src/de/value.rs
2+
index 8f9c0b48..2402c9ec 100644
3+
--- a/src/de/value.rs
4+
+++ b/src/de/value.rs
5+
@@ -37,6 +37,7 @@ macro_rules! impl_copy_clone {
6+
7+
impl<$($lifetime,)* E> Clone for $ty<$($lifetime,)* E> {
8+
fn clone(&self) -> Self {
9+
+ println!();
10+
*self
11+
}
12+
}

collector/compile-benchmarks/serde-1.0.219/Cargo.lock

+56
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,86 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies.
7+
#
8+
# If you are reading this file be aware that the original Cargo.toml
9+
# will likely look very different (and much more reasonable).
10+
# See Cargo.toml.orig for the original contents.
11+
12+
[package]
13+
edition = "2018"
14+
rust-version = "1.31"
15+
name = "serde"
16+
version = "1.0.219"
17+
authors = [
18+
"Erick Tryzelaar <[email protected]>",
19+
"David Tolnay <[email protected]>",
20+
]
21+
build = "build.rs"
22+
autolib = false
23+
autobins = false
24+
autoexamples = false
25+
autotests = false
26+
autobenches = false
27+
description = "A generic serialization/deserialization framework"
28+
homepage = "https://serde.rs"
29+
documentation = "https://docs.rs/serde"
30+
readme = "crates-io.md"
31+
keywords = [
32+
"serde",
33+
"serialization",
34+
"no_std",
35+
]
36+
categories = [
37+
"encoding",
38+
"no-std",
39+
"no-std::no-alloc",
40+
]
41+
license = "MIT OR Apache-2.0"
42+
repository = "https://github.com/serde-rs/serde"
43+
44+
[package.metadata.docs.rs]
45+
features = [
46+
"derive",
47+
"rc",
48+
"unstable",
49+
]
50+
rustdoc-args = [
51+
"--generate-link-to-definition",
52+
"--extern-html-root-url=core=https://doc.rust-lang.org",
53+
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
54+
"--extern-html-root-url=std=https://doc.rust-lang.org",
55+
]
56+
targets = ["x86_64-unknown-linux-gnu"]
57+
58+
[package.metadata.playground]
59+
features = [
60+
"derive",
61+
"rc",
62+
]
63+
64+
[features]
65+
alloc = []
66+
default = ["std"]
67+
derive = ["serde_derive"]
68+
rc = []
69+
std = []
70+
unstable = []
71+
72+
[lib]
73+
name = "serde"
74+
path = "src/lib.rs"
75+
76+
[dependencies.serde_derive]
77+
version = "1"
78+
optional = true
79+
80+
[dev-dependencies.serde_derive]
81+
version = "1"
82+
83+
[target."cfg(any())".dependencies.serde_derive]
84+
version = "=1.0.219"
85+
86+
[workspace]

collector/compile-benchmarks/serde-1.0.219/Cargo.toml.orig

+71
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)