-
-
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: delete comments for the test case (#1301)
- Loading branch information
1 parent
a50c61c
commit 985a914
Showing
1 changed file
with
4 additions
and
4 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
985a914
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
25.05
ns/op20.91
ns/op1.20
BenchmarkCachedRaw - B/op
0
B/op0
B/opNaN
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkCachedBasicModel - ns/op
285.8
ns/op208.2
ns/op1.37
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel - ns/op
279.3
ns/op210
ns/op1.33
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall - ns/op
301.3
ns/op223.5
ns/op1.35
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium - ns/op
330.7
ns/op236.7
ns/op1.40
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge - ns/op
273.3
ns/op221.3
ns/op1.23
BenchmarkCachedRBACModelLarge - B/op
97
B/op96
B/op1.01
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles - ns/op
310.9
ns/op217.5
ns/op1.43
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains - ns/op
308.8
ns/op231.6
ns/op1.33
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel - ns/op
4690
ns/op3827
ns/op1.23
BenchmarkCachedABACModel - B/op
1522
B/op1524
B/op1.00
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel - ns/op
331.8
ns/op230.6
ns/op1.44
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny - ns/op
294.7
ns/op208.8
ns/op1.41
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel - ns/op
301.1
ns/op208
ns/op1.45
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext - ns/op
532.4
ns/op420.6
ns/op1.27
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel - ns/op
280.2
ns/op229.2
ns/op1.22
BenchmarkCachedRBACModelMediumParallel - B/op
105
B/op105
B/op1
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall - ns/op
882.7
ns/op673.1
ns/op1.31
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium - ns/op
980.8
ns/op697
ns/op1.41
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge - ns/op
1008
ns/op730.4
ns/op1.38
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall - ns/op
923.7
ns/op686.8
ns/op1.34
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium - ns/op
1221
ns/op865.2
ns/op1.41
BenchmarkAddPolicyMedium - B/op
187
B/op179
B/op1.04
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge - ns/op
1941
ns/op1507
ns/op1.29
BenchmarkAddPolicyLarge - B/op
414
B/op467
B/op0.89
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall - ns/op
923.8
ns/op672.6
ns/op1.37
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium - ns/op
1091
ns/op782.4
ns/op1.39
BenchmarkRemovePolicyMedium - B/op
179
B/op178
B/op1.01
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge - ns/op
2318
ns/op1797
ns/op1.29
BenchmarkRemovePolicyLarge - B/op
306
B/op294
B/op1.04
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op13
allocs/op1
BenchmarkRaw - ns/op
25.15
ns/op20.91
ns/op1.20
BenchmarkRaw - B/op
0
B/op0
B/opNaN
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkBasicModel - ns/op
5701
ns/op4785
ns/op1.19
BenchmarkBasicModel - B/op
1490
B/op1490
B/op1
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel - ns/op
8636
ns/op7193
ns/op1.20
BenchmarkRBACModel - B/op
2036
B/op2037
B/op1.00
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small - ns/op
87099
ns/op62049
ns/op1.40
BenchmarkRBACModelSizes/small - B/op
19966
B/op19986
B/op1.00
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium - ns/op
1013746
ns/op655597
ns/op1.55
BenchmarkRBACModelSizes/medium - B/op
191479
B/op191198
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4832
allocs/op4827
allocs/op1.00
BenchmarkRBACModelSizes/large - ns/op
10933852
ns/op7854827
ns/op1.39
BenchmarkRBACModelSizes/large - B/op
1902627
B/op1899512
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48256
allocs/op48175
allocs/op1.00
BenchmarkRBACModelSmall - ns/op
94659
ns/op76575
ns/op1.24
BenchmarkRBACModelSmall - B/op
20081
B/op20063
B/op1.00
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium - ns/op
984965
ns/op744067
ns/op1.32
BenchmarkRBACModelMedium - B/op
194316
B/op194242
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6024
allocs/op6022
allocs/op1.00
BenchmarkRBACModelLarge - ns/op
11479809
ns/op8118629
ns/op1.41
BenchmarkRBACModelLarge - B/op
1950682
B/op1946279
B/op1.00
BenchmarkRBACModelLarge - allocs/op
61027
allocs/op60864
allocs/op1.00
BenchmarkRBACModelWithResourceRoles - ns/op
7163
ns/op5976
ns/op1.20
BenchmarkRBACModelWithResourceRoles - B/op
1822
B/op1821
B/op1.00
BenchmarkRBACModelWithResourceRoles - allocs/op
27
allocs/op27
allocs/op1
BenchmarkRBACModelWithDomains - ns/op
8253
ns/op6734
ns/op1.23
BenchmarkRBACModelWithDomains - B/op
1803
B/op1803
B/op1
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel - ns/op
4464
ns/op3676
ns/op1.21
BenchmarkABACModel - B/op
1511
B/op1512
B/op1.00
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel - ns/op
5840107
ns/op5131663
ns/op1.14
BenchmarkABACRuleModel - B/op
1304158
B/op1303506
B/op1.00
BenchmarkABACRuleModel - allocs/op
40088
allocs/op40088
allocs/op1
BenchmarkKeyMatchModel - ns/op
9898
ns/op8014
ns/op1.24
BenchmarkKeyMatchModel - B/op
3020
B/op3022
B/op1.00
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny - ns/op
12032
ns/op9195
ns/op1.31
BenchmarkRBACModelWithDeny - B/op
2443
B/op2444
B/op1.00
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel - ns/op
6947
ns/op5536
ns/op1.25
BenchmarkPriorityModel - B/op
1738
B/op1741
B/op1.00
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge - ns/op
40749
ns/op29442
ns/op1.38
BenchmarkRBACModelWithDomainPatternLarge - B/op
16597
B/op16606
B/op1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall - ns/op
133072
ns/op98735
ns/op1.35
BenchmarkRoleManagerSmall - B/op
11952
B/op11953
B/op1.00
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium - ns/op
1426750
ns/op1026525
ns/op1.39
BenchmarkRoleManagerMedium - B/op
125907
B/op125908
B/op1.00
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge - ns/op
17899649
ns/op12615491
ns/op1.42
BenchmarkRoleManagerLarge - B/op
1349922
B/op1349917
B/op1.00
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
10816579694
ns/op7480130172
ns/op1.45
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5286243352
B/op5289315544
B/op1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60935971
allocs/op60937241
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
293484917
ns/op206167690
ns/op1.42
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
139795270
B/op139983531
B/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676170
allocs/op1676211
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
10659661076
ns/op7735558852
ns/op1.38
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5423137320
B/op5424907680
B/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62546421
allocs/op62547475
allocs/op1.00
BenchmarkHasLinkWithPatternLarge - ns/op
17012
ns/op13204
ns/op1.29
BenchmarkHasLinkWithPatternLarge - B/op
7537
B/op7539
B/op1.00
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge - ns/op
915
ns/op708
ns/op1.29
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
16709
ns/op13065
ns/op1.28
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7541
B/op7538
B/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.
985a914
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
.BenchmarkCachedRaw - ns/op
25.05
ns/op20.91
ns/op1.20
BenchmarkCachedBasicModel - ns/op
285.8
ns/op208.2
ns/op1.37
BenchmarkCachedRBACModel - ns/op
279.3
ns/op210
ns/op1.33
BenchmarkCachedRBACModelSmall - ns/op
301.3
ns/op223.5
ns/op1.35
BenchmarkCachedRBACModelMedium - ns/op
330.7
ns/op236.7
ns/op1.40
BenchmarkCachedRBACModelLarge - ns/op
273.3
ns/op221.3
ns/op1.23
BenchmarkCachedRBACModelWithResourceRoles - ns/op
310.9
ns/op217.5
ns/op1.43
BenchmarkCachedRBACModelWithDomains - ns/op
308.8
ns/op231.6
ns/op1.33
BenchmarkCachedABACModel - ns/op
4690
ns/op3827
ns/op1.23
BenchmarkCachedKeyMatchModel - ns/op
331.8
ns/op230.6
ns/op1.44
BenchmarkCachedRBACModelWithDeny - ns/op
294.7
ns/op208.8
ns/op1.41
BenchmarkCachedPriorityModel - ns/op
301.1
ns/op208
ns/op1.45
BenchmarkCachedWithEnforceContext - ns/op
532.4
ns/op420.6
ns/op1.27
BenchmarkCachedRBACModelMediumParallel - ns/op
280.2
ns/op229.2
ns/op1.22
BenchmarkHasPolicySmall - ns/op
882.7
ns/op673.1
ns/op1.31
BenchmarkHasPolicyMedium - ns/op
980.8
ns/op697
ns/op1.41
BenchmarkHasPolicyLarge - ns/op
1008
ns/op730.4
ns/op1.38
BenchmarkAddPolicySmall - ns/op
923.7
ns/op686.8
ns/op1.34
BenchmarkAddPolicyMedium - ns/op
1221
ns/op865.2
ns/op1.41
BenchmarkAddPolicyLarge - ns/op
1941
ns/op1507
ns/op1.29
BenchmarkRemovePolicySmall - ns/op
923.8
ns/op672.6
ns/op1.37
BenchmarkRemovePolicyMedium - ns/op
1091
ns/op782.4
ns/op1.39
BenchmarkRemovePolicyLarge - ns/op
2318
ns/op1797
ns/op1.29
BenchmarkRaw - ns/op
25.15
ns/op20.91
ns/op1.20
BenchmarkBasicModel - ns/op
5701
ns/op4785
ns/op1.19
BenchmarkRBACModel - ns/op
8636
ns/op7193
ns/op1.20
BenchmarkRBACModelSizes/small - ns/op
87099
ns/op62049
ns/op1.40
BenchmarkRBACModelSizes/medium - ns/op
1013746
ns/op655597
ns/op1.55
BenchmarkRBACModelSizes/large - ns/op
10933852
ns/op7854827
ns/op1.39
BenchmarkRBACModelSmall - ns/op
94659
ns/op76575
ns/op1.24
BenchmarkRBACModelMedium - ns/op
984965
ns/op744067
ns/op1.32
BenchmarkRBACModelLarge - ns/op
11479809
ns/op8118629
ns/op1.41
BenchmarkRBACModelWithResourceRoles - ns/op
7163
ns/op5976
ns/op1.20
BenchmarkRBACModelWithDomains - ns/op
8253
ns/op6734
ns/op1.23
BenchmarkABACModel - ns/op
4464
ns/op3676
ns/op1.21
BenchmarkABACRuleModel - ns/op
5840107
ns/op5131663
ns/op1.14
BenchmarkKeyMatchModel - ns/op
9898
ns/op8014
ns/op1.24
BenchmarkRBACModelWithDeny - ns/op
12032
ns/op9195
ns/op1.31
BenchmarkPriorityModel - ns/op
6947
ns/op5536
ns/op1.25
BenchmarkRBACModelWithDomainPatternLarge - ns/op
40749
ns/op29442
ns/op1.38
BenchmarkRoleManagerSmall - ns/op
133072
ns/op98735
ns/op1.35
BenchmarkRoleManagerMedium - ns/op
1426750
ns/op1026525
ns/op1.39
BenchmarkRoleManagerLarge - ns/op
17899649
ns/op12615491
ns/op1.42
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
10816579694
ns/op7480130172
ns/op1.45
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
293484917
ns/op206167690
ns/op1.42
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
10659661076
ns/op7735558852
ns/op1.38
BenchmarkHasLinkWithPatternLarge - ns/op
17012
ns/op13204
ns/op1.29
BenchmarkHasLinkWithDomainPatternLarge - ns/op
915
ns/op708
ns/op1.29
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
16709
ns/op13065
ns/op1.28
This comment was automatically generated by workflow using github-action-benchmark.