Skip to content

Commit 5cb95bd

Browse files
committed
test(benches): add http2 chunks benchmark with default window size
1 parent 51cdbea commit 5cb95bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

benches/end_to_end.rs

+11
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ fn http2_parallel_x10_req_10mb(b: &mut test::Bencher) {
145145

146146
#[bench]
147147
fn http2_parallel_x10_req_10kb_100_chunks(b: &mut test::Bencher) {
148+
let body = &[b'x'; 1024 * 10];
149+
opts()
150+
.http2()
151+
.parallel(10)
152+
.method(Method::POST)
153+
.request_chunks(body, 100)
154+
.bench(b)
155+
}
156+
157+
#[bench]
158+
fn http2_parallel_x10_req_10kb_100_chunks_max_window(b: &mut test::Bencher) {
148159
let body = &[b'x'; 1024 * 10];
149160
opts()
150161
.http2()

0 commit comments

Comments
 (0)