# 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



感情是在等着写日志呢 查了好久的问题...
举报· 26 次点击
登录 注册 站外分享
1 条回复  
sagaxu 初学 2024-9-5 09:50:45
日志同步写入日志服务了?正常写日志性能影响应该很小
返回顶部