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
Labels
Projects
Comments
需要关注go-json本身是否存在bug/致命问题 |
wklken
added
Type: Enhancement
New feature or request
Size: XS(Hours)
<6 hours
backlog
需求初始状态,等待产品进行评估
labels
Jul 18, 2022
RBAC版本升上去, 并且压测的时候, 改下编译tag看看新版json性能对整体的影响 |
更新前: [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 |
更新后: [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 |
性能区别不大, 降低优先级, 后需要看gin是否有新的升级考虑升级 |
由于依赖库安全版本原因, 最新版本已升级到1.9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
release: https://github.com/gin-gonic/gin/releases
v1.8.x
需要关注点:
The text was updated successfully, but these errors were encountered: