参照 ShenYu 也 WebFlux 用 WebClient 转发 性能一直不行 终于找到问题了

查看 22|回复 1
作者:heliotrope   
# wrk -c600 -t4 -T10 -d180 --latency http://192.168.101.233:9195/gateway/sys/api
Running 3m test @ http://192.168.101.233:9195/gateway/sys/api
4 threads and 600 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.17s 3.10s 9.84s 76.92%
Req/Sec 473.03 366.87 1.79k 55.65%
Latency Distribution
50% 2.32s
75% 5.89s
90% 7.60s
99% 9.78s
35926 requests in 3.00m, 8.81MB read
Socket errors: connect 0, read 0, write 2669, timeout 712
Requests/sec: 199.51
Transfer/sec: 50.07KB
去掉日志
# wrk -c600 -t4 -T10 -d180 --latency http://192.168.101.233:9195/gateway/sys/api
Running 3m test @ http://192.168.101.233:9195/gateway/sys/api
4 threads and 600 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 89.75ms 36.12ms 442.22ms 89.28%
Req/Sec 1.71k 513.97 2.94k 70.65%
Latency Distribution
50% 78.67ms
75% 93.57ms
90% 128.32ms
99% 252.93ms
1224552 requests in 3.00m, 300.13MB read
Socket errors: connect 0, read 0, write 152, timeout 0
Requests/sec: 6799.68
Transfer/sec: 1.67MB
感情是在等着写日志呢 查了好久的问题...
sagaxu   
日志同步写入日志服务了?正常写日志性能影响应该很小
您需要登录后才可以回帖 登录 | 立即注册

返回顶部