From 5cb95bdda48ecc7ea12ccd26795e96fc665464b3 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 15 Oct 2019 18:29:33 -0700 Subject: [PATCH] test(benches): add http2 chunks benchmark with default window size --- benches/end_to_end.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/benches/end_to_end.rs b/benches/end_to_end.rs index 47aa8ed8..05f508c5 100644 --- a/benches/end_to_end.rs +++ b/benches/end_to_end.rs @@ -145,6 +145,17 @@ fn http2_parallel_x10_req_10mb(b: &mut test::Bencher) { #[bench] fn http2_parallel_x10_req_10kb_100_chunks(b: &mut test::Bencher) { + let body = &[b'x'; 1024 * 10]; + opts() + .http2() + .parallel(10) + .method(Method::POST) + .request_chunks(body, 100) + .bench(b) +} + +#[bench] +fn http2_parallel_x10_req_10kb_100_chunks_max_window(b: &mut test::Bencher) { let body = &[b'x'; 1024 * 10]; opts() .http2()