Skip to content

Commit 3b864a9

Browse files
committed
Add benchmark files and update documentation
1 parent 0ec3046 commit 3b864a9

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

collector/compile-benchmarks/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ They mostly consist of real-world crates.
1818
- **bitmaps-3.1.0**: A bitmaps implementation. Stresses the compiler's trait
1919
handling by implementing a trait `Bits` for the type `BitsImpl<N>` for every
2020
`N` value from 1 to 1024.
21+
- **bitmaps-3.2.1**: A bitmaps implementation. Stresses the compiler's trait
22+
handling by implementing a trait `Bits` for the type `BitsImpl<N>` for every
23+
`N` value from 1 to 1024.
2124
- **cargo-0.60.0**: The Rust package manager. A large program, and an important
2225
part of the Rust ecosystem.
2326
- **clap-3.1.6**: A command line argument parser library. A crate used by many

collector/compile-benchmarks/REUSE.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ path = "bitmaps-3.1.0/**"
2222
SPDX-License-Identifier = "MPL-2.0"
2323
SPDX-FileCopyrightText = "Bodil Stokke"
2424

25+
[[annotations]]
26+
path = "bitmaps-3.2.1/**"
27+
SPDX-License-Identifier = "MPL-2.0"
28+
SPDX-FileCopyrightText = "Bodil Stokke"
29+
2530
[[annotations]]
2631
path = "cargo-0.60.0/**"
2732
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/bitmap.rs b/src/bitmap.rs
2+
index ba5d1b18..9542a890 100644
3+
--- a/src/bitmap.rs
4+
+++ b/src/bitmap.rs
5+
@@ -27,6 +27,7 @@ where
6+
BitsImpl<{ SIZE }>: Bits,
7+
{
8+
fn clone(&self) -> Self {
9+
+ println!("testing");
10+
Bitmap::from_value(self.data)
11+
}
12+
}

collector/compile-benchmarks/bitmaps-3.2.1/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ version = "0.4.0"
3434
[features]
3535
default = ["std"]
3636
std = []
37+
38+
[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)