-
-
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.
- Loading branch information
1 parent
17becae
commit 4d1349a
Showing
10 changed files
with
32 additions
and
10 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
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
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
4d1349a
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
17.55
ns/op20.63
ns/op0.85
BenchmarkCachedRaw - B/op
0
B/op0
B/opNaN
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkCachedBasicModel - ns/op
165.3
ns/op236.9
ns/op0.70
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel - ns/op
168.9
ns/op250.4
ns/op0.67
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall - ns/op
177.5
ns/op262.2
ns/op0.68
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium - ns/op
179.7
ns/op263.8
ns/op0.68
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge - ns/op
156.6
ns/op244.6
ns/op0.64
BenchmarkCachedRBACModelLarge - B/op
96
B/op96
B/op1
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles - ns/op
167.3
ns/op248
ns/op0.67
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains - ns/op
179.6
ns/op284.5
ns/op0.63
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel - ns/op
3048
ns/op3971
ns/op0.77
BenchmarkCachedABACModel - B/op
1544
B/op1520
B/op1.02
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel - ns/op
183.9
ns/op270.9
ns/op0.68
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny - ns/op
168.2
ns/op249.5
ns/op0.67
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel - ns/op
170.7
ns/op259.1
ns/op0.66
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext - ns/op
312.8
ns/op472
ns/op0.66
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel - ns/op
123.9
ns/op219.5
ns/op0.56
BenchmarkCachedRBACModelMediumParallel - B/op
105
B/op105
B/op1
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall - ns/op
460.3
ns/op743.1
ns/op0.62
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium - ns/op
499.7
ns/op759.1
ns/op0.66
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge - ns/op
509.3
ns/op852.5
ns/op0.60
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall - ns/op
467.3
ns/op748.8
ns/op0.62
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium - ns/op
627.4
ns/op1049
ns/op0.60
BenchmarkAddPolicyMedium - B/op
173
B/op182
B/op0.95
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge - ns/op
1278
ns/op1653
ns/op0.77
BenchmarkAddPolicyLarge - B/op
473
B/op423
B/op1.12
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall - ns/op
481.4
ns/op743.5
ns/op0.65
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium - ns/op
537.3
ns/op876
ns/op0.61
BenchmarkRemovePolicyMedium - B/op
176
B/op178
B/op0.99
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge - ns/op
1243
ns/op1976
ns/op0.63
BenchmarkRemovePolicyLarge - B/op
289
B/op291
B/op0.99
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op13
allocs/op1
BenchmarkRaw - ns/op
17.53
ns/op20.59
ns/op0.85
BenchmarkRaw - B/op
0
B/op0
B/opNaN
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkBasicModel - ns/op
3706
ns/op4872
ns/op0.76
BenchmarkBasicModel - B/op
1510
B/op1489
B/op1.01
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel - ns/op
5613
ns/op7256
ns/op0.77
BenchmarkRBACModel - B/op
2070
B/op2034
B/op1.02
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small - ns/op
49082
ns/op68988
ns/op0.71
BenchmarkRBACModelSizes/small - B/op
20214
B/op19976
B/op1.01
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium - ns/op
516834
ns/op811189
ns/op0.64
BenchmarkRBACModelSizes/medium - B/op
191758
B/op191283
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4830
allocs/op4828
allocs/op1.00
BenchmarkRBACModelSizes/large - ns/op
5709390
ns/op9028181
ns/op0.63
BenchmarkRBACModelSizes/large - B/op
1899742
B/op1903188
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48170
allocs/op48274
allocs/op1.00
BenchmarkRBACModelSmall - ns/op
61393
ns/op81659
ns/op0.75
BenchmarkRBACModelSmall - B/op
20339
B/op20044
B/op1.01
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium - ns/op
579667
ns/op815797
ns/op0.71
BenchmarkRBACModelMedium - B/op
194721
B/op194452
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6021
allocs/op6023
allocs/op1.00
BenchmarkRBACModelLarge - ns/op
6169723
ns/op9981906
ns/op0.62
BenchmarkRBACModelLarge - B/op
1941098
B/op1951923
B/op0.99
BenchmarkRBACModelLarge - allocs/op
60621
allocs/op61076
allocs/op0.99
BenchmarkRBACModelWithResourceRoles - ns/op
4716
ns/op6110
ns/op0.77
BenchmarkRBACModelWithResourceRoles - B/op
1847
B/op1820
B/op1.01
BenchmarkRBACModelWithResourceRoles - allocs/op
27
allocs/op27
allocs/op1
BenchmarkRBACModelWithDomains - ns/op
5296
ns/op6915
ns/op0.77
BenchmarkRBACModelWithDomains - B/op
1828
B/op1805
B/op1.01
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel - ns/op
2876
ns/op3716
ns/op0.77
BenchmarkABACModel - B/op
1536
B/op1512
B/op1.02
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel - ns/op
3977634
ns/op5064636
ns/op0.79
BenchmarkABACRuleModel - B/op
1327819
B/op1303104
B/op1.02
BenchmarkABACRuleModel - allocs/op
40092
allocs/op40088
allocs/op1.00
BenchmarkKeyMatchModel - ns/op
6287
ns/op8119
ns/op0.77
BenchmarkKeyMatchModel - B/op
3072
B/op3021
B/op1.02
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny - ns/op
7103
ns/op9458
ns/op0.75
BenchmarkRBACModelWithDeny - B/op
2484
B/op2444
B/op1.02
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel - ns/op
4310
ns/op5611
ns/op0.77
BenchmarkPriorityModel - B/op
1765
B/op1738
B/op1.02
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge - ns/op
24622
ns/op32155
ns/op0.77
BenchmarkRBACModelWithDomainPatternLarge - B/op
16756
B/op16607
B/op1.01
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall - ns/op
70429
ns/op103921
ns/op0.68
BenchmarkRoleManagerSmall - B/op
11955
B/op11953
B/op1.00
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium - ns/op
755138
ns/op1078905
ns/op0.70
BenchmarkRoleManagerMedium - B/op
125915
B/op125908
B/op1.00
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge - ns/op
9329911
ns/op14234567
ns/op0.66
BenchmarkRoleManagerLarge - B/op
1349925
B/op1349916
B/op1.00
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
6212283114
ns/op8272593298
ns/op0.75
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5348304072
B/op5286619240
B/op1.01
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60949962
allocs/op60936912
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
169952935
ns/op228995351
ns/op0.74
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
141455876
B/op139829358
B/op1.01
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676533
allocs/op1676195
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
6435645526
ns/op9100464673
ns/op0.71
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5483027224
B/op5423310544
B/op1.01
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62559972
allocs/op62547182
allocs/op1.00
BenchmarkHasLinkWithPatternLarge - ns/op
10668
ns/op14292
ns/op0.75
BenchmarkHasLinkWithPatternLarge - B/op
7603
B/op7538
B/op1.01
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge - ns/op
497.3
ns/op744.5
ns/op0.67
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
10322
ns/op14261
ns/op0.72
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7612
B/op7536
B/op1.01
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.
4d1349a
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
.BenchmarkAddPolicyLarge - B/op
473
B/op423
B/op1.12
This comment was automatically generated by workflow using github-action-benchmark.