@@ -13,20 +13,20 @@ use hyper::{body::HttpBody as _, Body, Method, Request, Response, Server};
1313// HTTP1
1414
1515#[ bench]
16- fn http1_get ( b : & mut test:: Bencher ) {
16+ fn http1_consecutive_x1_empty ( b : & mut test:: Bencher ) {
1717 opts ( ) . bench ( b)
1818}
1919
2020#[ bench]
21- fn http1_post ( b : & mut test:: Bencher ) {
21+ fn http1_consecutive_x1_req_10b ( b : & mut test:: Bencher ) {
2222 opts ( )
2323 . method ( Method :: POST )
24- . request_body ( b"foo bar baz quux" )
24+ . request_body ( & [ b's' ; 10 ] )
2525 . bench ( b)
2626}
2727
2828#[ bench]
29- fn http1_body_both_100kb ( b : & mut test:: Bencher ) {
29+ fn http1_consecutive_x1_both_100kb ( b : & mut test:: Bencher ) {
3030 let body = & [ b'x' ; 1024 * 100 ] ;
3131 opts ( )
3232 . method ( Method :: POST )
@@ -36,7 +36,7 @@ fn http1_body_both_100kb(b: &mut test::Bencher) {
3636}
3737
3838#[ bench]
39- fn http1_body_both_10mb ( b : & mut test:: Bencher ) {
39+ fn http1_consecutive_x1_both_10mb ( b : & mut test:: Bencher ) {
4040 let body = & [ b'x' ; 1024 * 1024 * 10 ] ;
4141 opts ( )
4242 . method ( Method :: POST )
@@ -87,21 +87,21 @@ fn http1_parallel_x10_res_10mb(b: &mut test::Bencher) {
8787const HTTP2_MAX_WINDOW : u32 = std:: u32:: MAX >> 1 ;
8888
8989#[ bench]
90- fn http2_get ( b : & mut test:: Bencher ) {
90+ fn http2_consecutive_x1_empty ( b : & mut test:: Bencher ) {
9191 opts ( ) . http2 ( ) . bench ( b)
9292}
9393
9494#[ bench]
95- fn http2_post ( b : & mut test:: Bencher ) {
95+ fn http2_consecutive_x1_req_10b ( b : & mut test:: Bencher ) {
9696 opts ( )
9797 . http2 ( )
9898 . method ( Method :: POST )
99- . request_body ( b"foo bar baz quux" )
99+ . request_body ( & [ b's' ; 10 ] )
100100 . bench ( b)
101101}
102102
103103#[ bench]
104- fn http2_req_100kb ( b : & mut test:: Bencher ) {
104+ fn http2_consecutive_x1_req_100kb ( b : & mut test:: Bencher ) {
105105 let body = & [ b'x' ; 1024 * 100 ] ;
106106 opts ( )
107107 . http2 ( )
0 commit comments