Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend] 升级并测试gin最新版本 #1153

Closed
wklken opened this issue Jun 9, 2022 · 7 comments
Closed

[Backend] 升级并测试gin最新版本 #1153

wklken opened this issue Jun 9, 2022 · 7 comments
Labels
backlog 需求初始状态,等待产品进行评估 Size: XS(Hours) <6 hours Type: Enhancement New feature or request

Comments

@wklken
Copy link
Collaborator

wklken commented Jun 9, 2022

release: https://github.com/gin-gonic/gin/releases

v1.8.x

需要关注点:

@wklken
Copy link
Collaborator Author

wklken commented Jun 9, 2022

需要关注go-json本身是否存在bug/致命问题

@wklken wklken added Type: Enhancement New feature or request Size: XS(Hours) <6 hours backlog 需求初始状态,等待产品进行评估 labels Jul 18, 2022
@wklken wklken added this to To do in bk-iam 蓝鲸权限中心 via automation Jul 18, 2022
@wklken
Copy link
Collaborator Author

wklken commented Jul 18, 2022

RBAC版本升上去, 并且压测的时候, 改下编译tag看看新版json性能对整体的影响

@zhu327 zhu327 modified the milestones: Y2022M37, Y2022M38 Sep 13, 2022
@zhu327 zhu327 mentioned this issue Nov 18, 2022
40 tasks
@zhu327 zhu327 added this to the Y2022M50 milestone Dec 12, 2022
@zhu327
Copy link
Collaborator

zhu327 commented Dec 12, 2022

更新前:

[root@VM-0-193-centos ~/iam]# ./wrk -t8 -c100 -d60s --latency -s post.query.lua 'http://iam-dev-bench-backend.o.woa.com/api/v1/policy/query'
Running 1m test @ http://iam-dev-bench-backend.o.woa.com/api/v1/policy/query
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.89ms    8.27ms 196.53ms   93.69%
    Req/Sec     3.49k   599.93     5.83k    73.42%
  Latency Distribution
     50%    2.53ms
     75%    6.19ms
     90%   10.89ms
     99%   25.67ms
  1667642 requests in 1.00m, 464.95MB read
Requests/sec:  27756.72
Transfer/sec:      7.74MB
[root@VM-0-193-centos ~/iam]# ./wrk -t8 -c100 -d60s --latency -s post.auth.lua 'http://iam-dev-bench-backend.o.woa.com/api/v1/policy/auth'
Running 1m test @ http://iam-dev-bench-backend.o.woa.com/api/v1/policy/auth
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.90ms    9.81ms 240.32ms   95.70%
    Req/Sec     3.68k   663.21     5.53k    74.25%
  Latency Distribution
     50%    2.38ms
     75%    5.83ms
     90%   10.54ms
     99%   27.63ms
  1753230 requests in 1.00m, 486.70MB read
Requests/sec:  29173.30
Transfer/sec:      8.10MB

@zhu327
Copy link
Collaborator

zhu327 commented Dec 12, 2022

更新后:

[root@VM-0-193-centos ~/iam]# ./wrk -t8 -c100 -d60s --latency -s post.query.lua 'http://iam-dev-bench-backend.o.woa.com/api/v1/policy/query'
Running 1m test @ http://iam-dev-bench-backend.o.woa.com/api/v1/policy/query
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.86ms    6.66ms 163.45ms   90.65%
    Req/Sec     3.40k   600.70     5.16k    72.29%
  Latency Distribution
     50%    2.61ms
     75%    6.39ms
     90%   11.17ms
     99%   25.54ms
  1624424 requests in 1.00m, 452.88MB read
Requests/sec:  27041.74
Transfer/sec:      7.54MB
[root@VM-0-193-centos ~/iam]# ./wrk -t8 -c100 -d60s --latency -s post.auth.lua 'http://iam-dev-bench-backend.o.woa.com/api/v1/policy/auth'Running 1m test @ http://iam-dev-bench-backend.o.woa.com/api/v1/policy/auth
  8 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     4.55ms    7.00ms 144.92ms   92.35%
    Req/Sec     3.71k   653.85     5.68k    76.28%
  Latency Distribution
     50%    2.37ms
     75%    5.73ms
     90%   10.31ms
     99%   23.88ms
  1772641 requests in 1.00m, 492.12MB read
Requests/sec:  29506.51
Transfer/sec:      8.19MB

@zhu327
Copy link
Collaborator

zhu327 commented Dec 12, 2022

@zhu327 zhu327 closed this as completed Dec 12, 2022
bk-iam 蓝鲸权限中心 automation moved this from To do to Done Dec 12, 2022
@zhu327 zhu327 reopened this Dec 12, 2022
bk-iam 蓝鲸权限中心 automation moved this from Done to In progress Dec 12, 2022
@zhu327 zhu327 removed this from the Y2022M50 milestone Dec 12, 2022
@zhu327
Copy link
Collaborator

zhu327 commented Dec 12, 2022

性能区别不大, 降低优先级, 后需要看gin是否有新的升级考虑升级

@zhu327 zhu327 removed their assignment Dec 22, 2022
@zhu327
Copy link
Collaborator

zhu327 commented Dec 25, 2023

由于依赖库安全版本原因, 最新版本已升级到1.9.1

@zhu327 zhu327 closed this as completed Dec 25, 2023
bk-iam 蓝鲸权限中心 automation moved this from In progress to Done Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog 需求初始状态,等待产品进行评估 Size: XS(Hours) <6 hours Type: Enhancement New feature or request
Development

No branches or pull requests

2 participants