Skip to content

Commit ff6d6cb

Browse files
committed
Add benchmark files and update documentation
1 parent 99ebddf commit ff6d6cb

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

collector/compile-benchmarks/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ They mostly consist of real-world crates.
3434
- **hyper-0.14.18**: A fairly large crate. Utilizes async/await, and used by
3535
many Rust programs. The crate uses cargo features to enable large portions of its
3636
structure and is built with `--features=client,http1,http2,server,stream`.
37+
- **hyper-1.6.0**: Utilizes async/await, and is used by
38+
many Rust programs. The crate uses cargo features to enable large portions of its structure and is built with `--features=full`.
3739
- **image-0.24.1**: Basic image processing functions and methods for
3840
converting to and from various image formats. Used often in graphics
3941
programming.

collector/compile-benchmarks/REUSE.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ path = "hyper-0.14.18/**"
135135
SPDX-FileCopyrightText = "hyper contributors"
136136
SPDX-License-Identifier = "MIT"
137137

138+
[[annotations]]
139+
path = "hyper-1.6.0/**"
140+
SPDX-FileCopyrightText = "hyper contributors"
141+
SPDX-License-Identifier = "MIT"
142+
138143
[[annotations]]
139144
path = "image-0.24.1/**"
140145
SPDX-FileCopyrightText = "The image-rs Developers"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/body/incoming.rs b/src/body/incoming.rs
2+
index dcfb71d5..7980cf6f 100644
3+
--- a/src/body/incoming.rs
4+
+++ b/src/body/incoming.rs
5+
@@ -111,6 +111,7 @@ impl Incoming {
6+
7+
#[cfg(all(feature = "http1", any(feature = "client", feature = "server")))]
8+
pub(crate) fn new_channel(content_length: DecodedLength, wanter: bool) -> (Sender, Incoming) {
9+
+ println!("testing");
10+
let (data_tx, data_rx) = mpsc::channel(0);
11+
let (trailers_tx, trailers_rx) = oneshot::channel();
12+

collector/compile-benchmarks/hyper-1.6.0/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,5 @@ incremental = false
241241
[profile.release]
242242
codegen-units = 1
243243
incremental = false
244+
245+
[workspace]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cargo_opts": "--features=full",
3+
"artifact": "library",
4+
"category": "primary"
5+
}

0 commit comments

Comments
 (0)