-
-
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
Showing
1 changed file
with
2 additions
and
2 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
caebc40
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.57
ns/op 0 B/op 0 allocs/op17.56
ns/op 0 B/op 0 allocs/op1.00
BenchmarkCachedRaw - ns/op
17.57
ns/op17.56
ns/op1.00
BenchmarkCachedRaw - B/op
0
B/op0
B/op1
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/op1
BenchmarkCachedBasicModel
167.1
ns/op 104 B/op 4 allocs/op169.1
ns/op 104 B/op 4 allocs/op0.99
BenchmarkCachedBasicModel - ns/op
167.1
ns/op169.1
ns/op0.99
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel
167.5
ns/op 104 B/op 4 allocs/op170.4
ns/op 104 B/op 4 allocs/op0.98
BenchmarkCachedRBACModel - ns/op
167.5
ns/op170.4
ns/op0.98
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall
191.3
ns/op 104 B/op 4 allocs/op187
ns/op 104 B/op 4 allocs/op1.02
BenchmarkCachedRBACModelSmall - ns/op
191.3
ns/op187
ns/op1.02
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium
194.3
ns/op 104 B/op 4 allocs/op195.8
ns/op 104 B/op 4 allocs/op0.99
BenchmarkCachedRBACModelMedium - ns/op
194.3
ns/op195.8
ns/op0.99
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge
166.9
ns/op 96 B/op 3 allocs/op163.6
ns/op 96 B/op 3 allocs/op1.02
BenchmarkCachedRBACModelLarge - ns/op
166.9
ns/op163.6
ns/op1.02
BenchmarkCachedRBACModelLarge - B/op
96
B/op96
B/op1
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles
171.1
ns/op 104 B/op 4 allocs/op173.8
ns/op 104 B/op 4 allocs/op0.98
BenchmarkCachedRBACModelWithResourceRoles - ns/op
171.1
ns/op173.8
ns/op0.98
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains
181.6
ns/op 120 B/op 4 allocs/op183.6
ns/op 120 B/op 4 allocs/op0.99
BenchmarkCachedRBACModelWithDomains - ns/op
181.6
ns/op183.6
ns/op0.99
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel
2712
ns/op 1540 B/op 18 allocs/op2741
ns/op 1542 B/op 18 allocs/op0.99
BenchmarkCachedABACModel - ns/op
2712
ns/op2741
ns/op0.99
BenchmarkCachedABACModel - B/op
1540
B/op1542
B/op1.00
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel
181.2
ns/op 152 B/op 4 allocs/op186.9
ns/op 152 B/op 4 allocs/op0.97
BenchmarkCachedKeyMatchModel - ns/op
181.2
ns/op186.9
ns/op0.97
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny
172.3
ns/op 104 B/op 4 allocs/op170.6
ns/op 104 B/op 4 allocs/op1.01
BenchmarkCachedRBACModelWithDeny - ns/op
172.3
ns/op170.6
ns/op1.01
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel
168.4
ns/op 104 B/op 4 allocs/op171.1
ns/op 104 B/op 4 allocs/op0.98
BenchmarkCachedPriorityModel - ns/op
168.4
ns/op171.1
ns/op0.98
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext
290.1
ns/op 240 B/op 5 allocs/op294
ns/op 240 B/op 5 allocs/op0.99
BenchmarkCachedWithEnforceContext - ns/op
290.1
ns/op294
ns/op0.99
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel
179.5
ns/op 106 B/op 4 allocs/op174.7
ns/op 106 B/op 4 allocs/op1.03
BenchmarkCachedRBACModelMediumParallel - ns/op
179.5
ns/op174.7
ns/op1.03
BenchmarkCachedRBACModelMediumParallel - B/op
106
B/op106
B/op1
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall
468.5
ns/op 150 B/op 6 allocs/op461.2
ns/op 150 B/op 6 allocs/op1.02
BenchmarkHasPolicySmall - ns/op
468.5
ns/op461.2
ns/op1.02
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium
501.6
ns/op 157 B/op 6 allocs/op492.1
ns/op 157 B/op 6 allocs/op1.02
BenchmarkHasPolicyMedium - ns/op
501.6
ns/op492.1
ns/op1.02
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge
529.6
ns/op 165 B/op 7 allocs/op530
ns/op 165 B/op 7 allocs/op1.00
BenchmarkHasPolicyLarge - ns/op
529.6
ns/op530
ns/op1.00
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall
473.2
ns/op 152 B/op 6 allocs/op486
ns/op 152 B/op 6 allocs/op0.97
BenchmarkAddPolicySmall - ns/op
473.2
ns/op486
ns/op0.97
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium
556
ns/op 176 B/op 7 allocs/op554.5
ns/op 175 B/op 7 allocs/op1.00
BenchmarkAddPolicyMedium - ns/op
556
ns/op554.5
ns/op1.00
BenchmarkAddPolicyMedium - B/op
176
B/op175
B/op1.01
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge
1114
ns/op 470 B/op 9 allocs/op1090
ns/op 470 B/op 9 allocs/op1.02
BenchmarkAddPolicyLarge - ns/op
1114
ns/op1090
ns/op1.02
BenchmarkAddPolicyLarge - B/op
470
B/op470
B/op1
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall
486.8
ns/op 166 B/op 7 allocs/op502.5
ns/op 166 B/op 7 allocs/op0.97
BenchmarkRemovePolicySmall - ns/op
486.8
ns/op502.5
ns/op0.97
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium
529.7
ns/op 177 B/op 7 allocs/op543.1
ns/op 176 B/op 7 allocs/op0.98
BenchmarkRemovePolicyMedium - ns/op
529.7
ns/op543.1
ns/op0.98
BenchmarkRemovePolicyMedium - B/op
177
B/op176
B/op1.01
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge
1273
ns/op 287 B/op 13 allocs/op1325
ns/op 288 B/op 13 allocs/op0.96
BenchmarkRemovePolicyLarge - ns/op
1273
ns/op1325
ns/op0.96
BenchmarkRemovePolicyLarge - B/op
287
B/op288
B/op1.00
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op13
allocs/op1
BenchmarkRaw
17.55
ns/op 0 B/op 0 allocs/op17.48
ns/op 0 B/op 0 allocs/op1.00
BenchmarkRaw - ns/op
17.55
ns/op17.48
ns/op1.00
BenchmarkRaw - B/op
0
B/op0
B/op1
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/op1
BenchmarkBasicModel
3490
ns/op 1506 B/op 17 allocs/op3608
ns/op 1509 B/op 17 allocs/op0.97
BenchmarkBasicModel - ns/op
3490
ns/op3608
ns/op0.97
BenchmarkBasicModel - B/op
1506
B/op1509
B/op1.00
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel
5316
ns/op 2063 B/op 35 allocs/op5341
ns/op 2059 B/op 35 allocs/op1.00
BenchmarkRBACModel - ns/op
5316
ns/op5341
ns/op1.00
BenchmarkRBACModel - B/op
2063
B/op2059
B/op1.00
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small
50637
ns/op 20309 B/op 480 allocs/op51775
ns/op 20315 B/op 480 allocs/op0.98
BenchmarkRBACModelSizes/small - ns/op
50637
ns/op51775
ns/op0.98
BenchmarkRBACModelSizes/small - B/op
20309
B/op20315
B/op1.00
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium
494964
ns/op 191751 B/op 4828 allocs/op491760
ns/op 191785 B/op 4828 allocs/op1.01
BenchmarkRBACModelSizes/medium - ns/op
494964
ns/op491760
ns/op1.01
BenchmarkRBACModelSizes/medium - B/op
191751
B/op191785
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4828
allocs/op4828
allocs/op1
BenchmarkRBACModelSizes/large
5269002
ns/op 1906077 B/op 48353 allocs/op5222509
ns/op 1898988 B/op 48143 allocs/op1.01
BenchmarkRBACModelSizes/large - ns/op
5269002
ns/op5222509
ns/op1.01
BenchmarkRBACModelSizes/large - B/op
1906077
B/op1898988
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48353
allocs/op48143
allocs/op1.00
BenchmarkRBACModelSmall
60042
ns/op 20404 B/op 615 allocs/op62104
ns/op 20370 B/op 615 allocs/op0.97
BenchmarkRBACModelSmall - ns/op
60042
ns/op62104
ns/op0.97
BenchmarkRBACModelSmall - B/op
20404
B/op20370
B/op1.00
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium
570297
ns/op 194647 B/op 6021 allocs/op573635
ns/op 194825 B/op 6021 allocs/op0.99
BenchmarkRBACModelMedium - ns/op
570297
ns/op573635
ns/op0.99
BenchmarkRBACModelMedium - B/op
194647
B/op194825
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6021
allocs/op6021
allocs/op1
BenchmarkRBACModelLarge
6095299
ns/op 1941573 B/op 60627 allocs/op6030064
ns/op 1941690 B/op 60656 allocs/op1.01
BenchmarkRBACModelLarge - ns/op
6095299
ns/op6030064
ns/op1.01
BenchmarkRBACModelLarge - B/op
1941573
B/op1941690
B/op1.00
BenchmarkRBACModelLarge - allocs/op
60627
allocs/op60656
allocs/op1.00
BenchmarkRBACModelWithResourceRoles
5072
ns/op 2725 B/op 28 allocs/op5212
ns/op 2733 B/op 28 allocs/op0.97
BenchmarkRBACModelWithResourceRoles - ns/op
5072
ns/op5212
ns/op0.97
BenchmarkRBACModelWithResourceRoles - B/op
2725
B/op2733
B/op1.00
BenchmarkRBACModelWithResourceRoles - allocs/op
28
allocs/op28
allocs/op1
BenchmarkRBACModelWithDomains
4936
ns/op 1822 B/op 25 allocs/op5017
ns/op 1826 B/op 25 allocs/op0.98
BenchmarkRBACModelWithDomains - ns/op
4936
ns/op5017
ns/op0.98
BenchmarkRBACModelWithDomains - B/op
1822
B/op1826
B/op1.00
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel
2694
ns/op 1531 B/op 17 allocs/op2782
ns/op 1534 B/op 17 allocs/op0.97
BenchmarkABACModel - ns/op
2694
ns/op2782
ns/op0.97
BenchmarkABACModel - B/op
1531
B/op1534
B/op1.00
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel
3886211
ns/op 1324246 B/op 40091 allocs/op4036196
ns/op 1328785 B/op 40092 allocs/op0.96
BenchmarkABACRuleModel - ns/op
3886211
ns/op4036196
ns/op0.96
BenchmarkABACRuleModel - B/op
1324246
B/op1328785
B/op1.00
BenchmarkABACRuleModel - allocs/op
40091
allocs/op40092
allocs/op1.00
BenchmarkKeyMatchModel
5968
ns/op 3061 B/op 37 allocs/op6082
ns/op 3067 B/op 37 allocs/op0.98
BenchmarkKeyMatchModel - ns/op
5968
ns/op6082
ns/op0.98
BenchmarkKeyMatchModel - B/op
3061
B/op3067
B/op1.00
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny
6751
ns/op 2474 B/op 49 allocs/op6922
ns/op 2480 B/op 49 allocs/op0.98
BenchmarkRBACModelWithDeny - ns/op
6751
ns/op6922
ns/op0.98
BenchmarkRBACModelWithDeny - B/op
2474
B/op2480
B/op1.00
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel
4061
ns/op 1757 B/op 22 allocs/op4199
ns/op 1761 B/op 22 allocs/op0.97
BenchmarkPriorityModel - ns/op
4061
ns/op4199
ns/op0.97
BenchmarkPriorityModel - B/op
1757
B/op1761
B/op1.00
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge
22937
ns/op 16770 B/op 164 allocs/op23391
ns/op 16732 B/op 164 allocs/op0.98
BenchmarkRBACModelWithDomainPatternLarge - ns/op
22937
ns/op23391
ns/op0.98
BenchmarkRBACModelWithDomainPatternLarge - B/op
16770
B/op16732
B/op1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall
68331
ns/op 11955 B/op 797 allocs/op70045
ns/op 11955 B/op 797 allocs/op0.98
BenchmarkRoleManagerSmall - ns/op
68331
ns/op70045
ns/op0.98
BenchmarkRoleManagerSmall - B/op
11955
B/op11955
B/op1
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium
703876
ns/op 125915 B/op 8741 allocs/op707450
ns/op 125915 B/op 8741 allocs/op0.99
BenchmarkRoleManagerMedium - ns/op
703876
ns/op707450
ns/op0.99
BenchmarkRoleManagerMedium - B/op
125915
B/op125915
B/op1
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge
7892084
ns/op 1349929 B/op 89741 allocs/op7642968
ns/op 1349923 B/op 89741 allocs/op1.03
BenchmarkRoleManagerLarge - ns/op
7892084
ns/op7642968
ns/op1.03
BenchmarkRoleManagerLarge - B/op
1349929
B/op1349923
B/op1.00
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge
6148545369
ns/op 5355357800 B/op 60951400 allocs/op6256557958
ns/op 5346899296 B/op 60949825 allocs/op0.98
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
6148545369
ns/op6256557958
ns/op0.98
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5355357800
B/op5346899296
B/op1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60951400
allocs/op60949825
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge
167701225
ns/op 141914446 B/op 1676568 allocs/op171326965
ns/op 141524824 B/op 1676490 allocs/op0.98
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
167701225
ns/op171326965
ns/op0.98
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
141914446
B/op141524824
B/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676568
allocs/op1676490
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge
6315080386
ns/op 5493508032 B/op 62562142 allocs/op6449048820
ns/op 5482896960 B/op 62559958 allocs/op0.98
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
6315080386
ns/op6449048820
ns/op0.98
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5493508032
B/op5482896960
B/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62562142
allocs/op62559958
allocs/op1.00
BenchmarkHasLinkWithPatternLarge
10446
ns/op 7623 B/op 111 allocs/op10565
ns/op 7608 B/op 111 allocs/op0.99
BenchmarkHasLinkWithPatternLarge - ns/op
10446
ns/op10565
ns/op0.99
BenchmarkHasLinkWithPatternLarge - B/op
7623
B/op7608
B/op1.00
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge
480.2
ns/op 80 B/op 5 allocs/op481.8
ns/op 80 B/op 5 allocs/op1.00
BenchmarkHasLinkWithDomainPatternLarge - ns/op
480.2
ns/op481.8
ns/op1.00
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge
10305
ns/op 7612 B/op 111 allocs/op10329
ns/op 7610 B/op 111 allocs/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
10305
ns/op10329
ns/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7612
B/op7610
B/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.