test(benches): add http2 chunks benchmark with default window size

This commit is contained in:
Sean McArthur
2019-10-15 18:29:33 -07:00
parent 51cdbea826
commit 5cb95bdda4

View File

@@ -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()