???????????
????????????? wrk ???????????
Running 10s test @ http://localhost:8080/hello/piglei
5 threads and 100 connections
Thread Stats   Avg      Stdev     Max   +/- Stdev
Latency   336.28ms  651.93ms   1.72s    81.42%
Req/Sec   657.74    547.89     3.47k    72.81%
Latency Distribution
50%   28.88ms
75%   38.64ms
90%    1.71s
99%    1.72s
33320 requests in 10.00s?? 4.10MB read
Requests/sec:   3331.92
Transfer/sec:    419.74KB
???????????????У??к??????????
????· ?????? Requests/sec?? ??????????????????????????????????????????????????????????????
????· ??????????? Transfer/sec?? ??????????????????????????????????????????????д??????????
????· ?????? Latency?? ?й????????к??????????????????????????????С???????????λ???????????
????· ???????????? ?????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????
????1. HTTP ???????? Gzip ???
??????????????? Nginx ????? gzip ????????????????????????????????????????????????????????????????????????????????????????£???????????? Accept-Encoding: gzip?? defalte ??????????? Gzip ?????
????2. ???????????????????????????
???????????????????????????????????????????????????????????????????????????Ρ????????????е????????????Transfer/sec?????????????????????
????3. ?????????
??????????????????????????????????????????????????????????
???????磬??? Nginx ?? proxy_pass ?????????????? RPS ???????????????????????????????????????????????????????????????????
????4. ??????? HTTP ??????
??????????? HTTP ????????????????????????????? keep-alive?????????????У?????????????????????????????? HTTP ????????
????????????????????????????????????????????????????????????????????????????????????????????????????
????????
????????????????????????Щ HTTP ???????????????????д????????????