Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update PerformancePush config (#1403)
* feat: update PerformancePush config * feat: update PerformancePush config
- Loading branch information
a29d8a8
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.41
ns/op 0 B/op 0 allocs/op17.51
ns/op 0 B/op 0 allocs/op0.99
BenchmarkCachedRaw - ns/op
17.41
ns/op17.51
ns/op0.99
BenchmarkCachedRaw - B/op
0
B/op0
B/op1
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/op1
BenchmarkCachedBasicModel
168.3
ns/op 104 B/op 4 allocs/op171.5
ns/op 104 B/op 4 allocs/op0.98
BenchmarkCachedBasicModel - ns/op
168.3
ns/op171.5
ns/op0.98
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel
171.4
ns/op 104 B/op 4 allocs/op171.6
ns/op 104 B/op 4 allocs/op1.00
BenchmarkCachedRBACModel - ns/op
171.4
ns/op171.6
ns/op1.00
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall
176.4
ns/op 104 B/op 4 allocs/op172.2
ns/op 104 B/op 4 allocs/op1.02
BenchmarkCachedRBACModelSmall - ns/op
176.4
ns/op172.2
ns/op1.02
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium
182.9
ns/op 104 B/op 4 allocs/op183.2
ns/op 104 B/op 4 allocs/op1.00
BenchmarkCachedRBACModelMedium - ns/op
182.9
ns/op183.2
ns/op1.00
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge
159.2
ns/op 96 B/op 3 allocs/op160.2
ns/op 96 B/op 3 allocs/op0.99
BenchmarkCachedRBACModelLarge - ns/op
159.2
ns/op160.2
ns/op0.99
BenchmarkCachedRBACModelLarge - B/op
96
B/op96
B/op1
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles
175.6
ns/op 104 B/op 4 allocs/op176.4
ns/op 104 B/op 4 allocs/op1.00
BenchmarkCachedRBACModelWithResourceRoles - ns/op
175.6
ns/op176.4
ns/op1.00
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains
182.5
ns/op 120 B/op 4 allocs/op188
ns/op 120 B/op 4 allocs/op0.97
BenchmarkCachedRBACModelWithDomains - ns/op
182.5
ns/op188
ns/op0.97
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel
2906
ns/op 1546 B/op 18 allocs/op2953
ns/op 1543 B/op 18 allocs/op0.98
BenchmarkCachedABACModel - ns/op
2906
ns/op2953
ns/op0.98
BenchmarkCachedABACModel - B/op
1546
B/op1543
B/op1.00
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel
190.2
ns/op 152 B/op 4 allocs/op197.1
ns/op 152 B/op 4 allocs/op0.96
BenchmarkCachedKeyMatchModel - ns/op
190.2
ns/op197.1
ns/op0.96
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny
170.5
ns/op 104 B/op 4 allocs/op174.3
ns/op 104 B/op 4 allocs/op0.98
BenchmarkCachedRBACModelWithDeny - ns/op
170.5
ns/op174.3
ns/op0.98
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel
170.7
ns/op 104 B/op 4 allocs/op173
ns/op 104 B/op 4 allocs/op0.99
BenchmarkCachedPriorityModel - ns/op
170.7
ns/op173
ns/op0.99
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext
306.9
ns/op 240 B/op 5 allocs/op308.8
ns/op 240 B/op 5 allocs/op0.99
BenchmarkCachedWithEnforceContext - ns/op
306.9
ns/op308.8
ns/op0.99
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel
168.4
ns/op 105 B/op 4 allocs/op178.4
ns/op 106 B/op 4 allocs/op0.94
BenchmarkCachedRBACModelMediumParallel - ns/op
168.4
ns/op178.4
ns/op0.94
BenchmarkCachedRBACModelMediumParallel - B/op
105
B/op106
B/op0.99
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall
519.1
ns/op 150 B/op 6 allocs/op544.3
ns/op 150 B/op 6 allocs/op0.95
BenchmarkHasPolicySmall - ns/op
519.1
ns/op544.3
ns/op0.95
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium
553.3
ns/op 157 B/op 6 allocs/op569.2
ns/op 157 B/op 6 allocs/op0.97
BenchmarkHasPolicyMedium - ns/op
553.3
ns/op569.2
ns/op0.97
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge
589.4
ns/op 165 B/op 7 allocs/op596.6
ns/op 165 B/op 7 allocs/op0.99
BenchmarkHasPolicyLarge - ns/op
589.4
ns/op596.6
ns/op0.99
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall
553.1
ns/op 152 B/op 6 allocs/op553.4
ns/op 152 B/op 6 allocs/op1.00
BenchmarkAddPolicySmall - ns/op
553.1
ns/op553.4
ns/op1.00
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium
645.8
ns/op 169 B/op 7 allocs/op686.6
ns/op 178 B/op 7 allocs/op0.94
BenchmarkAddPolicyMedium - ns/op
645.8
ns/op686.6
ns/op0.94
BenchmarkAddPolicyMedium - B/op
169
B/op178
B/op0.95
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge
1242
ns/op 464 B/op 9 allocs/op1172
ns/op 470 B/op 9 allocs/op1.06
BenchmarkAddPolicyLarge - ns/op
1242
ns/op1172
ns/op1.06
BenchmarkAddPolicyLarge - B/op
464
B/op470
B/op0.99
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall
522.1
ns/op 166 B/op 7 allocs/op546
ns/op 166 B/op 7 allocs/op0.96
BenchmarkRemovePolicySmall - ns/op
522.1
ns/op546
ns/op0.96
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium
558.8
ns/op 175 B/op 7 allocs/op601.9
ns/op 177 B/op 7 allocs/op0.93
BenchmarkRemovePolicyMedium - ns/op
558.8
ns/op601.9
ns/op0.93
BenchmarkRemovePolicyMedium - B/op
175
B/op177
B/op0.99
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge
1322
ns/op 288 B/op 13 allocs/op1182
ns/op 288 B/op 13 allocs/op1.12
BenchmarkRemovePolicyLarge - ns/op
1322
ns/op1182
ns/op1.12
BenchmarkRemovePolicyLarge - B/op
288
B/op288
B/op1
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op13
allocs/op1
BenchmarkRaw
17.58
ns/op 0 B/op 0 allocs/op17.6
ns/op 0 B/op 0 allocs/op1.00
BenchmarkRaw - ns/op
17.58
ns/op17.6
ns/op1.00
BenchmarkRaw - B/op
0
B/op0
B/op1
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/op1
BenchmarkBasicModel
3690
ns/op 1509 B/op 17 allocs/op3671
ns/op 1503 B/op 17 allocs/op1.01
BenchmarkBasicModel - ns/op
3690
ns/op3671
ns/op1.01
BenchmarkBasicModel - B/op
1509
B/op1503
B/op1.00
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel
5549
ns/op 2069 B/op 35 allocs/op5429
ns/op 2055 B/op 35 allocs/op1.02
BenchmarkRBACModel - ns/op
5549
ns/op5429
ns/op1.02
BenchmarkRBACModel - B/op
2069
B/op2055
B/op1.01
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small
52640
ns/op 20284 B/op 480 allocs/op48847
ns/op 20097 B/op 480 allocs/op1.08
BenchmarkRBACModelSizes/small - ns/op
52640
ns/op48847
ns/op1.08
BenchmarkRBACModelSizes/small - B/op
20284
B/op20097
B/op1.01
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium
534539
ns/op 191714 B/op 4829 allocs/op518489
ns/op 191290 B/op 4827 allocs/op1.03
BenchmarkRBACModelSizes/medium - ns/op
534539
ns/op518489
ns/op1.03
BenchmarkRBACModelSizes/medium - B/op
191714
B/op191290
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4829
allocs/op4827
allocs/op1.00
BenchmarkRBACModelSizes/large
6081113
ns/op 1900765 B/op 48203 allocs/op5806594
ns/op 1899570 B/op 48170 allocs/op1.05
BenchmarkRBACModelSizes/large - ns/op
6081113
ns/op5806594
ns/op1.05
BenchmarkRBACModelSizes/large - B/op
1900765
B/op1899570
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48203
allocs/op48170
allocs/op1.00
BenchmarkRBACModelSmall
62771
ns/op 20404 B/op 615 allocs/op59950
ns/op 20180 B/op 615 allocs/op1.05
BenchmarkRBACModelSmall - ns/op
62771
ns/op59950
ns/op1.05
BenchmarkRBACModelSmall - B/op
20404
B/op20180
B/op1.01
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium
595611
ns/op 194707 B/op 6018 allocs/op577532
ns/op 194058 B/op 6020 allocs/op1.03
BenchmarkRBACModelMedium - ns/op
595611
ns/op577532
ns/op1.03
BenchmarkRBACModelMedium - B/op
194707
B/op194058
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6018
allocs/op6020
allocs/op1.00
BenchmarkRBACModelLarge
6139679
ns/op 1933403 B/op 60306 allocs/op6127265
ns/op 1940221 B/op 60598 allocs/op1.00
BenchmarkRBACModelLarge - ns/op
6139679
ns/op6127265
ns/op1.00
BenchmarkRBACModelLarge - B/op
1933403
B/op1940221
B/op1.00
BenchmarkRBACModelLarge - allocs/op
60306
allocs/op60598
allocs/op1.00
BenchmarkRBACModelWithResourceRoles
5484
ns/op 2740 B/op 28 allocs/op5180
ns/op 2724 B/op 28 allocs/op1.06
BenchmarkRBACModelWithResourceRoles - ns/op
5484
ns/op5180
ns/op1.06
BenchmarkRBACModelWithResourceRoles - B/op
2740
B/op2724
B/op1.01
BenchmarkRBACModelWithResourceRoles - allocs/op
28
allocs/op28
allocs/op1
BenchmarkRBACModelWithDomains
5204
ns/op 1827 B/op 25 allocs/op5015
ns/op 1820 B/op 25 allocs/op1.04
BenchmarkRBACModelWithDomains - ns/op
5204
ns/op5015
ns/op1.04
BenchmarkRBACModelWithDomains - B/op
1827
B/op1820
B/op1.00
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel
2879
ns/op 1537 B/op 17 allocs/op2722
ns/op 1530 B/op 17 allocs/op1.06
BenchmarkABACModel - ns/op
2879
ns/op2722
ns/op1.06
BenchmarkABACModel - B/op
1537
B/op1530
B/op1.00
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel
4091106
ns/op 1329131 B/op 40092 allocs/op3857187
ns/op 1316072 B/op 40090 allocs/op1.06
BenchmarkABACRuleModel - ns/op
4091106
ns/op3857187
ns/op1.06
BenchmarkABACRuleModel - B/op
1329131
B/op1316072
B/op1.01
BenchmarkABACRuleModel - allocs/op
40092
allocs/op40090
allocs/op1.00
BenchmarkKeyMatchModel
6298
ns/op 3074 B/op 37 allocs/op5935
ns/op 3057 B/op 37 allocs/op1.06
BenchmarkKeyMatchModel - ns/op
6298
ns/op5935
ns/op1.06
BenchmarkKeyMatchModel - B/op
3074
B/op3057
B/op1.01
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny
6978
ns/op 2482 B/op 49 allocs/op6820
ns/op 2473 B/op 49 allocs/op1.02
BenchmarkRBACModelWithDeny - ns/op
6978
ns/op6820
ns/op1.02
BenchmarkRBACModelWithDeny - B/op
2482
B/op2473
B/op1.00
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel
4305
ns/op 1765 B/op 22 allocs/op4122
ns/op 1758 B/op 22 allocs/op1.04
BenchmarkPriorityModel - ns/op
4305
ns/op4122
ns/op1.04
BenchmarkPriorityModel - B/op
1765
B/op1758
B/op1.00
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge
24866
ns/op 16722 B/op 164 allocs/op23524
ns/op 16697 B/op 164 allocs/op1.06
BenchmarkRBACModelWithDomainPatternLarge - ns/op
24866
ns/op23524
ns/op1.06
BenchmarkRBACModelWithDomainPatternLarge - B/op
16722
B/op16697
B/op1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall
72311
ns/op 11955 B/op 797 allocs/op67863
ns/op 11954 B/op 797 allocs/op1.07
BenchmarkRoleManagerSmall - ns/op
72311
ns/op67863
ns/op1.07
BenchmarkRoleManagerSmall - B/op
11955
B/op11954
B/op1.00
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium
736318
ns/op 125915 B/op 8741 allocs/op713511
ns/op 125913 B/op 8741 allocs/op1.03
BenchmarkRoleManagerMedium - ns/op
736318
ns/op713511
ns/op1.03
BenchmarkRoleManagerMedium - B/op
125915
B/op125913
B/op1.00
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge
7947330
ns/op 1349921 B/op 89741 allocs/op8676188
ns/op 1349926 B/op 89741 allocs/op0.92
BenchmarkRoleManagerLarge - ns/op
7947330
ns/op8676188
ns/op0.92
BenchmarkRoleManagerLarge - B/op
1349921
B/op1349926
B/op1.00
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge
6416438245
ns/op 5345527312 B/op 60949275 allocs/op6060284280
ns/op 5323352512 B/op 60944110 allocs/op1.06
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
6416438245
ns/op6060284280
ns/op1.06
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5345527312
B/op5323352512
B/op1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60949275
allocs/op60944110
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge
178943074
ns/op 141563910 B/op 1676494 allocs/op169755697
ns/op 140976254 B/op 1676362 allocs/op1.05
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
178943074
ns/op169755697
ns/op1.05
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
141563910
B/op140976254
B/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676494
allocs/op1676362
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge
6619276996
ns/op 5482336640 B/op 62559659 allocs/op6198888302
ns/op 5463122216 B/op 62555012 allocs/op1.07
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
6619276996
ns/op6198888302
ns/op1.07
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5482336640
B/op5463122216
B/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62559659
allocs/op62555012
allocs/op1.00
BenchmarkHasLinkWithPatternLarge
10949
ns/op 7606 B/op 111 allocs/op9860
ns/op 7579 B/op 111 allocs/op1.11
BenchmarkHasLinkWithPatternLarge - ns/op
10949
ns/op9860
ns/op1.11
BenchmarkHasLinkWithPatternLarge - B/op
7606
B/op7579
B/op1.00
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge
500.9
ns/op 80 B/op 5 allocs/op475.7
ns/op 80 B/op 5 allocs/op1.05
BenchmarkHasLinkWithDomainPatternLarge - ns/op
500.9
ns/op475.7
ns/op1.05
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge
10644
ns/op 7604 B/op 111 allocs/op9803
ns/op 7582 B/op 111 allocs/op1.09
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
10644
ns/op9803
ns/op1.09
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7604
B/op7582
B/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.
a29d8a8
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
.BenchmarkRemovePolicyLarge
1322
ns/op 288 B/op 13 allocs/op1182
ns/op 288 B/op 13 allocs/op1.12
BenchmarkRemovePolicyLarge - ns/op
1322
ns/op1182
ns/op1.12
BenchmarkHasLinkWithPatternLarge
10949
ns/op 7606 B/op 111 allocs/op9860
ns/op 7579 B/op 111 allocs/op1.11
BenchmarkHasLinkWithPatternLarge - ns/op
10949
ns/op9860
ns/op1.11
This comment was automatically generated by workflow using github-action-benchmark.