Skip to content

Commit 9812078

Browse files
committed
Add benchmark files and update documentation
1 parent 751b509 commit 9812078

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

collector/compile-benchmarks/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ They mostly consist of real-world crates.
4040
converting to and from various image formats. Used often in graphics
4141
programming.
4242
- **libc-0.2.124**: An interface to `libc`. Contains many declarations of
43-
types, constants, and functions, but relatively little normal code. Stresses
44-
the parser. A very widely-used crate.
43+
types, constants, and functions, but relatively little normal code. Stresses the parser. A very widely-used crate.
44+
- **libc-0.2.172**: An interface to `libc`. Contains many declarations of
45+
types, constants, and functions, but relatively little normal code. Stresses the parser. A very widely-used crate.
4546
- **nalgebra-0.33.0**: A linear algebra library. It exercises the new trait solver
4647
in different ways than the old solver.
4748
- **regex-1.5.5**: A regular expression parser. Used by many Rust programs.

collector/compile-benchmarks/REUSE.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ path = "libc-0.2.124/**"
165165
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
166166
SPDX-License-Identifier = "MIT OR Apache-2.0"
167167

168+
[[annotations]]
169+
path = "libc-0.2.172/**"
170+
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
171+
SPDX-License-Identifier = "MIT OR Apache-2.0"
172+
168173
[[annotations]]
169174
path = "many-assoc-items/**"
170175
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/primitives.rs b/src/primitives.rs
2+
index 668d3340..380e1e06 100644
3+
--- a/src/primitives.rs
4+
+++ b/src/primitives.rs
5+
@@ -164,3 +164,7 @@ cfg_if! {
6+
// static_assert_eq!(core::mem::align_of::<__uint128_t>(), _ALIGN_128);
7+
}
8+
}
9+
+
10+
+fn foo() {
11+
+ let a = 5;
12+
+}

collector/compile-benchmarks/libc-0.2.172/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,5 @@ path = "tests/const_fn.rs"
184184
[dependencies.rustc-std-workspace-core]
185185
version = "1.0.0"
186186
optional = true
187+
188+
[workspace]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"artifact": "library",
3+
"category": "primary"
4+
}

0 commit comments

Comments
 (0)