-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
.golangci-lint.yml
and apply lint (#1372)
* feat: add golangci-lint config * ci: update lint ci config * ci: disable noisy lint rules * refactor: apply lint * ci: disable lint rules for future improvement
- Loading branch information
Showing
39 changed files
with
546 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: golangci-lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
golangci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: v1.56.2 |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2858196
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
BenchmarkCachedRaw
17.61
ns/op 0 B/op 0 allocs/op17.57
ns/op 0 B/op 0 allocs/op1.00
BenchmarkCachedRaw - ns/op
17.61
ns/op17.57
ns/op1.00
BenchmarkCachedRaw - B/op
0
B/op0
B/op1
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/op1
BenchmarkCachedBasicModel
182.7
ns/op 104 B/op 4 allocs/op167.1
ns/op 104 B/op 4 allocs/op1.09
BenchmarkCachedBasicModel - ns/op
182.7
ns/op167.1
ns/op1.09
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel
187.8
ns/op 104 B/op 4 allocs/op167.5
ns/op 104 B/op 4 allocs/op1.12
BenchmarkCachedRBACModel - ns/op
187.8
ns/op167.5
ns/op1.12
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall
190.6
ns/op 104 B/op 4 allocs/op191.3
ns/op 104 B/op 4 allocs/op1.00
BenchmarkCachedRBACModelSmall - ns/op
190.6
ns/op191.3
ns/op1.00
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium
192.1
ns/op 104 B/op 4 allocs/op194.3
ns/op 104 B/op 4 allocs/op0.99
BenchmarkCachedRBACModelMedium - ns/op
192.1
ns/op194.3
ns/op0.99
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge
188.5
ns/op 96 B/op 3 allocs/op166.9
ns/op 96 B/op 3 allocs/op1.13
BenchmarkCachedRBACModelLarge - ns/op
188.5
ns/op166.9
ns/op1.13
BenchmarkCachedRBACModelLarge - B/op
96
B/op96
B/op1
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles
177.5
ns/op 104 B/op 4 allocs/op171.1
ns/op 104 B/op 4 allocs/op1.04
BenchmarkCachedRBACModelWithResourceRoles - ns/op
177.5
ns/op171.1
ns/op1.04
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains
187.9
ns/op 120 B/op 4 allocs/op181.6
ns/op 120 B/op 4 allocs/op1.03
BenchmarkCachedRBACModelWithDomains - ns/op
187.9
ns/op181.6
ns/op1.03
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel
2929
ns/op 1539 B/op 18 allocs/op2712
ns/op 1540 B/op 18 allocs/op1.08
BenchmarkCachedABACModel - ns/op
2929
ns/op2712
ns/op1.08
BenchmarkCachedABACModel - B/op
1539
B/op1540
B/op1.00
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel
199.1
ns/op 152 B/op 4 allocs/op181.2
ns/op 152 B/op 4 allocs/op1.10
BenchmarkCachedKeyMatchModel - ns/op
199.1
ns/op181.2
ns/op1.10
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny
182.5
ns/op 104 B/op 4 allocs/op172.3
ns/op 104 B/op 4 allocs/op1.06
BenchmarkCachedRBACModelWithDeny - ns/op
182.5
ns/op172.3
ns/op1.06
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel
181.5
ns/op 104 B/op 4 allocs/op168.4
ns/op 104 B/op 4 allocs/op1.08
BenchmarkCachedPriorityModel - ns/op
181.5
ns/op168.4
ns/op1.08
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext
323.3
ns/op 240 B/op 5 allocs/op290.1
ns/op 240 B/op 5 allocs/op1.11
BenchmarkCachedWithEnforceContext - ns/op
323.3
ns/op290.1
ns/op1.11
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel
181.6
ns/op 106 B/op 4 allocs/op179.5
ns/op 106 B/op 4 allocs/op1.01
BenchmarkCachedRBACModelMediumParallel - ns/op
181.6
ns/op179.5
ns/op1.01
BenchmarkCachedRBACModelMediumParallel - B/op
106
B/op106
B/op1
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall
493.2
ns/op 150 B/op 6 allocs/op468.5
ns/op 150 B/op 6 allocs/op1.05
BenchmarkHasPolicySmall - ns/op
493.2
ns/op468.5
ns/op1.05
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium
514.2
ns/op 157 B/op 6 allocs/op501.6
ns/op 157 B/op 6 allocs/op1.03
BenchmarkHasPolicyMedium - ns/op
514.2
ns/op501.6
ns/op1.03
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge
534.3
ns/op 165 B/op 7 allocs/op529.6
ns/op 165 B/op 7 allocs/op1.01
BenchmarkHasPolicyLarge - ns/op
534.3
ns/op529.6
ns/op1.01
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall
501.6
ns/op 152 B/op 6 allocs/op473.2
ns/op 152 B/op 6 allocs/op1.06
BenchmarkAddPolicySmall - ns/op
501.6
ns/op473.2
ns/op1.06
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium
585.4
ns/op 177 B/op 7 allocs/op556
ns/op 176 B/op 7 allocs/op1.05
BenchmarkAddPolicyMedium - ns/op
585.4
ns/op556
ns/op1.05
BenchmarkAddPolicyMedium - B/op
177
B/op176
B/op1.01
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge
1283
ns/op 470 B/op 9 allocs/op1114
ns/op 470 B/op 9 allocs/op1.15
BenchmarkAddPolicyLarge - ns/op
1283
ns/op1114
ns/op1.15
BenchmarkAddPolicyLarge - B/op
470
B/op470
B/op1
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall
516.7
ns/op 166 B/op 7 allocs/op486.8
ns/op 166 B/op 7 allocs/op1.06
BenchmarkRemovePolicySmall - ns/op
516.7
ns/op486.8
ns/op1.06
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium
572.8
ns/op 177 B/op 7 allocs/op529.7
ns/op 177 B/op 7 allocs/op1.08
BenchmarkRemovePolicyMedium - ns/op
572.8
ns/op529.7
ns/op1.08
BenchmarkRemovePolicyMedium - B/op
177
B/op177
B/op1
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge
1212
ns/op 290 B/op 13 allocs/op1273
ns/op 287 B/op 13 allocs/op0.95
BenchmarkRemovePolicyLarge - ns/op
1212
ns/op1273
ns/op0.95
BenchmarkRemovePolicyLarge - B/op
290
B/op287
B/op1.01
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op13
allocs/op1
BenchmarkRaw
17.69
ns/op 0 B/op 0 allocs/op17.55
ns/op 0 B/op 0 allocs/op1.01
BenchmarkRaw - ns/op
17.69
ns/op17.55
ns/op1.01
BenchmarkRaw - B/op
0
B/op0
B/op1
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/op1
BenchmarkBasicModel
3816
ns/op 1510 B/op 17 allocs/op3490
ns/op 1506 B/op 17 allocs/op1.09
BenchmarkBasicModel - ns/op
3816
ns/op3490
ns/op1.09
BenchmarkBasicModel - B/op
1510
B/op1506
B/op1.00
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel
5765
ns/op 2068 B/op 35 allocs/op5316
ns/op 2063 B/op 35 allocs/op1.08
BenchmarkRBACModel - ns/op
5765
ns/op5316
ns/op1.08
BenchmarkRBACModel - B/op
2068
B/op2063
B/op1.00
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small
51015
ns/op 20287 B/op 480 allocs/op50637
ns/op 20309 B/op 480 allocs/op1.01
BenchmarkRBACModelSizes/small - ns/op
51015
ns/op50637
ns/op1.01
BenchmarkRBACModelSizes/small - B/op
20287
B/op20309
B/op1.00
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium
561865
ns/op 191731 B/op 4828 allocs/op494964
ns/op 191751 B/op 4828 allocs/op1.14
BenchmarkRBACModelSizes/medium - ns/op
561865
ns/op494964
ns/op1.14
BenchmarkRBACModelSizes/medium - B/op
191731
B/op191751
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4828
allocs/op4828
allocs/op1
BenchmarkRBACModelSizes/large
6281436
ns/op 1897729 B/op 48112 allocs/op5269002
ns/op 1906077 B/op 48353 allocs/op1.19
BenchmarkRBACModelSizes/large - ns/op
6281436
ns/op5269002
ns/op1.19
BenchmarkRBACModelSizes/large - B/op
1897729
B/op1906077
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48112
allocs/op48353
allocs/op1.00
BenchmarkRBACModelSmall
61613
ns/op 20346 B/op 615 allocs/op60042
ns/op 20404 B/op 615 allocs/op1.03
BenchmarkRBACModelSmall - ns/op
61613
ns/op60042
ns/op1.03
BenchmarkRBACModelSmall - B/op
20346
B/op20404
B/op1.00
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium
612743
ns/op 194839 B/op 6022 allocs/op570297
ns/op 194647 B/op 6021 allocs/op1.07
BenchmarkRBACModelMedium - ns/op
612743
ns/op570297
ns/op1.07
BenchmarkRBACModelMedium - B/op
194839
B/op194647
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6022
allocs/op6021
allocs/op1.00
BenchmarkRBACModelLarge
6577122
ns/op 1941897 B/op 60656 allocs/op6095299
ns/op 1941573 B/op 60627 allocs/op1.08
BenchmarkRBACModelLarge - ns/op
6577122
ns/op6095299
ns/op1.08
BenchmarkRBACModelLarge - B/op
1941897
B/op1941573
B/op1.00
BenchmarkRBACModelLarge - allocs/op
60656
allocs/op60627
allocs/op1.00
BenchmarkRBACModelWithResourceRoles
5469
ns/op 2731 B/op 28 allocs/op5072
ns/op 2725 B/op 28 allocs/op1.08
BenchmarkRBACModelWithResourceRoles - ns/op
5469
ns/op5072
ns/op1.08
BenchmarkRBACModelWithResourceRoles - B/op
2731
B/op2725
B/op1.00
BenchmarkRBACModelWithResourceRoles - allocs/op
28
allocs/op28
allocs/op1
BenchmarkRBACModelWithDomains
5436
ns/op 1827 B/op 25 allocs/op4936
ns/op 1822 B/op 25 allocs/op1.10
BenchmarkRBACModelWithDomains - ns/op
5436
ns/op4936
ns/op1.10
BenchmarkRBACModelWithDomains - B/op
1827
B/op1822
B/op1.00
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel
2902
ns/op 1537 B/op 17 allocs/op2694
ns/op 1531 B/op 17 allocs/op1.08
BenchmarkABACModel - ns/op
2902
ns/op2694
ns/op1.08
BenchmarkABACModel - B/op
1537
B/op1531
B/op1.00
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel
4204941
ns/op 1325613 B/op 40092 allocs/op3886211
ns/op 1324246 B/op 40091 allocs/op1.08
BenchmarkABACRuleModel - ns/op
4204941
ns/op3886211
ns/op1.08
BenchmarkABACRuleModel - B/op
1325613
B/op1324246
B/op1.00
BenchmarkABACRuleModel - allocs/op
40092
allocs/op40091
allocs/op1.00
BenchmarkKeyMatchModel
6395
ns/op 3064 B/op 37 allocs/op5968
ns/op 3061 B/op 37 allocs/op1.07
BenchmarkKeyMatchModel - ns/op
6395
ns/op5968
ns/op1.07
BenchmarkKeyMatchModel - B/op
3064
B/op3061
B/op1.00
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny
7263
ns/op 2482 B/op 49 allocs/op6751
ns/op 2474 B/op 49 allocs/op1.08
BenchmarkRBACModelWithDeny - ns/op
7263
ns/op6751
ns/op1.08
BenchmarkRBACModelWithDeny - B/op
2482
B/op2474
B/op1.00
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel
4444
ns/op 1765 B/op 22 allocs/op4061
ns/op 1757 B/op 22 allocs/op1.09
BenchmarkPriorityModel - ns/op
4444
ns/op4061
ns/op1.09
BenchmarkPriorityModel - B/op
1765
B/op1757
B/op1.00
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge
23026
ns/op 16719 B/op 164 allocs/op22937
ns/op 16770 B/op 164 allocs/op1.00
BenchmarkRBACModelWithDomainPatternLarge - ns/op
23026
ns/op22937
ns/op1.00
BenchmarkRBACModelWithDomainPatternLarge - B/op
16719
B/op16770
B/op1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall
70410
ns/op 11955 B/op 797 allocs/op68331
ns/op 11955 B/op 797 allocs/op1.03
BenchmarkRoleManagerSmall - ns/op
70410
ns/op68331
ns/op1.03
BenchmarkRoleManagerSmall - B/op
11955
B/op11955
B/op1
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium
753996
ns/op 125915 B/op 8741 allocs/op703876
ns/op 125915 B/op 8741 allocs/op1.07
BenchmarkRoleManagerMedium - ns/op
753996
ns/op703876
ns/op1.07
BenchmarkRoleManagerMedium - B/op
125915
B/op125915
B/op1
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge
8171010
ns/op 1349922 B/op 89741 allocs/op7892084
ns/op 1349929 B/op 89741 allocs/op1.04
BenchmarkRoleManagerLarge - ns/op
8171010
ns/op7892084
ns/op1.04
BenchmarkRoleManagerLarge - B/op
1349922
B/op1349929
B/op1.00
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge
6201805485
ns/op 5339397800 B/op 60947734 allocs/op6148545369
ns/op 5355357800 B/op 60951400 allocs/op1.01
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
6201805485
ns/op6148545369
ns/op1.01
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5339397800
B/op5355357800
B/op1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60947734
allocs/op60951400
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge
173108893
ns/op 141435628 B/op 1676456 allocs/op167701225
ns/op 141914446 B/op 1676568 allocs/op1.03
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
173108893
ns/op167701225
ns/op1.03
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
141435628
B/op141914446
B/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676456
allocs/op1676568
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge
6405295476
ns/op 5480109904 B/op 62558865 allocs/op6315080386
ns/op 5493508032 B/op 62562142 allocs/op1.01
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
6405295476
ns/op6315080386
ns/op1.01
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5480109904
B/op5493508032
B/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62558865
allocs/op62562142
allocs/op1.00
BenchmarkHasLinkWithPatternLarge
10457
ns/op 7604 B/op 111 allocs/op10446
ns/op 7623 B/op 111 allocs/op1.00
BenchmarkHasLinkWithPatternLarge - ns/op
10457
ns/op10446
ns/op1.00
BenchmarkHasLinkWithPatternLarge - B/op
7604
B/op7623
B/op1.00
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge
495.9
ns/op 80 B/op 5 allocs/op480.2
ns/op 80 B/op 5 allocs/op1.03
BenchmarkHasLinkWithDomainPatternLarge - ns/op
495.9
ns/op480.2
ns/op1.03
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge
10642
ns/op 7601 B/op 111 allocs/op10305
ns/op 7612 B/op 111 allocs/op1.03
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
10642
ns/op10305
ns/op1.03
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7601
B/op7612
B/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.
2858196
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.10
.BenchmarkCachedRBACModel
187.8
ns/op 104 B/op 4 allocs/op167.5
ns/op 104 B/op 4 allocs/op1.12
BenchmarkCachedRBACModel - ns/op
187.8
ns/op167.5
ns/op1.12
BenchmarkCachedRBACModelLarge
188.5
ns/op 96 B/op 3 allocs/op166.9
ns/op 96 B/op 3 allocs/op1.13
BenchmarkCachedRBACModelLarge - ns/op
188.5
ns/op166.9
ns/op1.13
BenchmarkCachedWithEnforceContext
323.3
ns/op 240 B/op 5 allocs/op290.1
ns/op 240 B/op 5 allocs/op1.11
BenchmarkCachedWithEnforceContext - ns/op
323.3
ns/op290.1
ns/op1.11
BenchmarkAddPolicyLarge
1283
ns/op 470 B/op 9 allocs/op1114
ns/op 470 B/op 9 allocs/op1.15
BenchmarkAddPolicyLarge - ns/op
1283
ns/op1114
ns/op1.15
BenchmarkRBACModelSizes/medium
561865
ns/op 191731 B/op 4828 allocs/op494964
ns/op 191751 B/op 4828 allocs/op1.14
BenchmarkRBACModelSizes/medium - ns/op
561865
ns/op494964
ns/op1.14
BenchmarkRBACModelSizes/large
6281436
ns/op 1897729 B/op 48112 allocs/op5269002
ns/op 1906077 B/op 48353 allocs/op1.19
BenchmarkRBACModelSizes/large - ns/op
6281436
ns/op5269002
ns/op1.19
BenchmarkRBACModelWithDomains
5436
ns/op 1827 B/op 25 allocs/op4936
ns/op 1822 B/op 25 allocs/op1.10
BenchmarkRBACModelWithDomains - ns/op
5436
ns/op4936
ns/op1.10
This comment was automatically generated by workflow using github-action-benchmark.