-
-
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.
fix: different types of role definition panic (#1304)
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 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
e46d08e
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 - ns/op
20.9
ns/op25.05
ns/op0.83
BenchmarkCachedRaw - B/op
0
B/op0
B/opNaN
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkCachedBasicModel - ns/op
201.8
ns/op285.8
ns/op0.71
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel - ns/op
202.6
ns/op279.3
ns/op0.73
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall - ns/op
221.3
ns/op301.3
ns/op0.73
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium - ns/op
225.6
ns/op330.7
ns/op0.68
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge - ns/op
224.8
ns/op273.3
ns/op0.82
BenchmarkCachedRBACModelLarge - B/op
96
B/op97
B/op0.99
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles - ns/op
202.5
ns/op310.9
ns/op0.65
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains - ns/op
226.2
ns/op308.8
ns/op0.73
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel - ns/op
3825
ns/op4690
ns/op0.82
BenchmarkCachedABACModel - B/op
1525
B/op1522
B/op1.00
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel - ns/op
230.9
ns/op331.8
ns/op0.70
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny - ns/op
203.3
ns/op294.7
ns/op0.69
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel - ns/op
222
ns/op301.1
ns/op0.74
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext - ns/op
421.4
ns/op532.4
ns/op0.79
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel - ns/op
209.4
ns/op280.2
ns/op0.75
BenchmarkCachedRBACModelMediumParallel - B/op
105
B/op105
B/op1
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall - ns/op
657.8
ns/op882.7
ns/op0.75
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium - ns/op
685.1
ns/op980.8
ns/op0.70
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge - ns/op
706.1
ns/op1008
ns/op0.70
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall - ns/op
693
ns/op923.7
ns/op0.75
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium - ns/op
820.5
ns/op1221
ns/op0.67
BenchmarkAddPolicyMedium - B/op
178
B/op187
B/op0.95
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge - ns/op
1473
ns/op1941
ns/op0.76
BenchmarkAddPolicyLarge - B/op
412
B/op414
B/op1.00
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall - ns/op
671.1
ns/op923.8
ns/op0.73
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium - ns/op
780.5
ns/op1091
ns/op0.72
BenchmarkRemovePolicyMedium - B/op
178
B/op179
B/op0.99
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge - ns/op
1657
ns/op2318
ns/op0.71
BenchmarkRemovePolicyLarge - B/op
295
B/op306
B/op0.96
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op13
allocs/op1
BenchmarkRaw - ns/op
20.9
ns/op25.15
ns/op0.83
BenchmarkRaw - B/op
0
B/op0
B/opNaN
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkBasicModel - ns/op
4784
ns/op5701
ns/op0.84
BenchmarkBasicModel - B/op
1492
B/op1490
B/op1.00
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel - ns/op
7283
ns/op8636
ns/op0.84
BenchmarkRBACModel - B/op
2038
B/op2036
B/op1.00
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small - ns/op
62519
ns/op87099
ns/op0.72
BenchmarkRBACModelSizes/small - B/op
19997
B/op19966
B/op1.00
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium - ns/op
628886
ns/op1013746
ns/op0.62
BenchmarkRBACModelSizes/medium - B/op
191308
B/op191479
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4829
allocs/op4832
allocs/op1.00
BenchmarkRBACModelSizes/large - ns/op
7409476
ns/op10933852
ns/op0.68
BenchmarkRBACModelSizes/large - B/op
1899522
B/op1902627
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48175
allocs/op48256
allocs/op1.00
BenchmarkRBACModelSmall - ns/op
74834
ns/op94659
ns/op0.79
BenchmarkRBACModelSmall - B/op
20093
B/op20081
B/op1.00
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium - ns/op
753357
ns/op984965
ns/op0.76
BenchmarkRBACModelMedium - B/op
194368
B/op194316
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6022
allocs/op6024
allocs/op1.00
BenchmarkRBACModelLarge - ns/op
8379338
ns/op11479809
ns/op0.73
BenchmarkRBACModelLarge - B/op
1944404
B/op1950682
B/op1.00
BenchmarkRBACModelLarge - allocs/op
60776
allocs/op61027
allocs/op1.00
BenchmarkRBACModelWithResourceRoles - ns/op
5911
ns/op7163
ns/op0.83
BenchmarkRBACModelWithResourceRoles - B/op
1822
B/op1822
B/op1
BenchmarkRBACModelWithResourceRoles - allocs/op
27
allocs/op27
allocs/op1
BenchmarkRBACModelWithDomains - ns/op
6716
ns/op8253
ns/op0.81
BenchmarkRBACModelWithDomains - B/op
1808
B/op1803
B/op1.00
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel - ns/op
3694
ns/op4464
ns/op0.83
BenchmarkABACModel - B/op
1516
B/op1511
B/op1.00
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel - ns/op
5044726
ns/op5840107
ns/op0.86
BenchmarkABACRuleModel - B/op
1305218
B/op1304158
B/op1.00
BenchmarkABACRuleModel - allocs/op
40088
allocs/op40088
allocs/op1
BenchmarkKeyMatchModel - ns/op
7902
ns/op9898
ns/op0.80
BenchmarkKeyMatchModel - B/op
3028
B/op3020
B/op1.00
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny - ns/op
9117
ns/op12032
ns/op0.76
BenchmarkRBACModelWithDeny - B/op
2446
B/op2443
B/op1.00
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel - ns/op
5597
ns/op6947
ns/op0.81
BenchmarkPriorityModel - B/op
1741
B/op1738
B/op1.00
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge - ns/op
28171
ns/op40749
ns/op0.69
BenchmarkRBACModelWithDomainPatternLarge - B/op
16607
B/op16597
B/op1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall - ns/op
97935
ns/op133072
ns/op0.74
BenchmarkRoleManagerSmall - B/op
11953
B/op11952
B/op1.00
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium - ns/op
1025065
ns/op1426750
ns/op0.72
BenchmarkRoleManagerMedium - B/op
125909
B/op125907
B/op1.00
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge - ns/op
14771294
ns/op17899649
ns/op0.83
BenchmarkRoleManagerLarge - B/op
1349922
B/op1349922
B/op1
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
7388723866
ns/op10816579694
ns/op0.68
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5292652424
B/op5286243352
B/op1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60937806
allocs/op60935971
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
203625286
ns/op293484917
ns/op0.69
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
140103579
B/op139795270
B/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676236
allocs/op1676170
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
7737591512
ns/op10659661076
ns/op0.73
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5428503400
B/op5423137320
B/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62548080
allocs/op62546421
allocs/op1.00
BenchmarkHasLinkWithPatternLarge - ns/op
13966
ns/op17012
ns/op0.82
BenchmarkHasLinkWithPatternLarge - B/op
7538
B/op7537
B/op1.00
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge - ns/op
706.3
ns/op915
ns/op0.77
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
13057
ns/op16709
ns/op0.78
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7540
B/op7541
B/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.