test(benches): add http2 chunks benchmark with default window size
This commit is contained in:
@@ -145,6 +145,17 @@ fn http2_parallel_x10_req_10mb(b: &mut test::Bencher) {
|
|||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
fn http2_parallel_x10_req_10kb_100_chunks(b: &mut test::Bencher) {
|
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];
|
let body = &[b'x'; 1024 * 10];
|
||||||
opts()
|
opts()
|
||||||
.http2()
|
.http2()
|
||||||
|
|||||||
Reference in New Issue
Block a user