Skip to content

Commit 415ce82

Browse files
committed
add hyper-0.14.18 benchmark scaffolding
1 parent 95038ce commit 415ce82

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

collector/benchmarks/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ They mostly consist of real-world crates.
3535
- **html5ever**: An HTML parser. Stresses macro parsing code significantly.
3636
- **hyper-2**: A fairly large crate. Utilizes async/await, and used by
3737
many Rust programs.
38+
- **hyper-0.14.18**: A fairly large crate. Utilizes async/await, and used by
39+
many Rust programs. The crate uses cargo features to enable large portions of its
40+
structure and is built with `--features client,http1,http2,server,stream`.
3841
- **image-0.24.1**: Basic image processing functions and methods for
3942
converting to and from various image formats. Used often in graphics
4043
programming.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/body/body.rs b/src/body/body.rs
2+
index 9dc1a034..6f2cb1cf 100644
3+
--- a/src/body/body.rs
4+
+++ b/src/body/body.rs
5+
@@ -140,6 +140,7 @@ impl Body {
6+
}
7+
8+
pub(crate) fn new_channel(content_length: DecodedLength, wanter: bool) -> (Sender, Body) {
9+
+ println!("testing");
10+
let (data_tx, data_rx) = mpsc::channel(0);
11+
let (trailers_tx, trailers_rx) = oneshot::channel();
12+

collector/benchmarks/hyper-0.14.18/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,5 @@ tcp = [
325325

326326
[target."cfg(any(target_os = \"linux\", target_os = \"macos\"))".dev-dependencies.pnet_datalink]
327327
version = "0.27.2"
328+
329+
[workspace]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"cargo_opts": "--features client,http1,http2,server,stream",
23
"category": "primary"
34
}

0 commit comments

Comments
 (0)