-
-
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
14 additions
and
0 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
9682630
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/op17.51
ns/op1.00
BenchmarkCachedRaw - B/op
0
B/op0
B/opNaN
BenchmarkCachedRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkCachedBasicModel - ns/op
166.5
ns/op165.8
ns/op1.00
BenchmarkCachedBasicModel - B/op
104
B/op104
B/op1
BenchmarkCachedBasicModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModel - ns/op
164.9
ns/op165.6
ns/op1.00
BenchmarkCachedRBACModel - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelSmall - ns/op
174.9
ns/op175.9
ns/op0.99
BenchmarkCachedRBACModelSmall - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelSmall - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelMedium - ns/op
178
ns/op181.8
ns/op0.98
BenchmarkCachedRBACModelMedium - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelMedium - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelLarge - ns/op
161.8
ns/op166.6
ns/op0.97
BenchmarkCachedRBACModelLarge - B/op
96
B/op96
B/op1
BenchmarkCachedRBACModelLarge - allocs/op
3
allocs/op3
allocs/op1
BenchmarkCachedRBACModelWithResourceRoles - ns/op
162.6
ns/op165.9
ns/op0.98
BenchmarkCachedRBACModelWithResourceRoles - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithResourceRoles - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDomains - ns/op
177.1
ns/op175
ns/op1.01
BenchmarkCachedRBACModelWithDomains - B/op
120
B/op120
B/op1
BenchmarkCachedRBACModelWithDomains - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedABACModel - ns/op
2850
ns/op2905
ns/op0.98
BenchmarkCachedABACModel - B/op
1536
B/op1541
B/op1.00
BenchmarkCachedABACModel - allocs/op
18
allocs/op18
allocs/op1
BenchmarkCachedKeyMatchModel - ns/op
178.9
ns/op182.5
ns/op0.98
BenchmarkCachedKeyMatchModel - B/op
152
B/op152
B/op1
BenchmarkCachedKeyMatchModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedRBACModelWithDeny - ns/op
163.7
ns/op166.7
ns/op0.98
BenchmarkCachedRBACModelWithDeny - B/op
104
B/op104
B/op1
BenchmarkCachedRBACModelWithDeny - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedPriorityModel - ns/op
170.4
ns/op170
ns/op1.00
BenchmarkCachedPriorityModel - B/op
104
B/op104
B/op1
BenchmarkCachedPriorityModel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkCachedWithEnforceContext - ns/op
304.5
ns/op307.7
ns/op0.99
BenchmarkCachedWithEnforceContext - B/op
240
B/op240
B/op1
BenchmarkCachedWithEnforceContext - allocs/op
5
allocs/op5
allocs/op1
BenchmarkCachedRBACModelMediumParallel - ns/op
169.8
ns/op167.4
ns/op1.01
BenchmarkCachedRBACModelMediumParallel - B/op
106
B/op106
B/op1
BenchmarkCachedRBACModelMediumParallel - allocs/op
4
allocs/op4
allocs/op1
BenchmarkHasPolicySmall - ns/op
438.2
ns/op449.3
ns/op0.98
BenchmarkHasPolicySmall - B/op
150
B/op150
B/op1
BenchmarkHasPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyMedium - ns/op
469.4
ns/op480.6
ns/op0.98
BenchmarkHasPolicyMedium - B/op
157
B/op157
B/op1
BenchmarkHasPolicyMedium - allocs/op
6
allocs/op6
allocs/op1
BenchmarkHasPolicyLarge - ns/op
511.8
ns/op502.2
ns/op1.02
BenchmarkHasPolicyLarge - B/op
165
B/op165
B/op1
BenchmarkHasPolicyLarge - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicySmall - ns/op
471.5
ns/op473.5
ns/op1.00
BenchmarkAddPolicySmall - B/op
152
B/op152
B/op1
BenchmarkAddPolicySmall - allocs/op
6
allocs/op6
allocs/op1
BenchmarkAddPolicyMedium - ns/op
536.2
ns/op549.4
ns/op0.98
BenchmarkAddPolicyMedium - B/op
172
B/op172
B/op1
BenchmarkAddPolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkAddPolicyLarge - ns/op
1157
ns/op1116
ns/op1.04
BenchmarkAddPolicyLarge - B/op
473
B/op473
B/op1
BenchmarkAddPolicyLarge - allocs/op
9
allocs/op9
allocs/op1
BenchmarkRemovePolicySmall - ns/op
491.2
ns/op503.9
ns/op0.97
BenchmarkRemovePolicySmall - B/op
166
B/op166
B/op1
BenchmarkRemovePolicySmall - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyMedium - ns/op
531
ns/op556
ns/op0.96
BenchmarkRemovePolicyMedium - B/op
176
B/op176
B/op1
BenchmarkRemovePolicyMedium - allocs/op
7
allocs/op7
allocs/op1
BenchmarkRemovePolicyLarge - ns/op
1330
ns/op1257
ns/op1.06
BenchmarkRemovePolicyLarge - B/op
295
B/op283
B/op1.04
BenchmarkRemovePolicyLarge - allocs/op
13
allocs/op12
allocs/op1.08
BenchmarkRaw - ns/op
17.61
ns/op17.51
ns/op1.01
BenchmarkRaw - B/op
0
B/op0
B/opNaN
BenchmarkRaw - allocs/op
0
allocs/op0
allocs/opNaN
BenchmarkBasicModel - ns/op
3633
ns/op3636
ns/op1.00
BenchmarkBasicModel - B/op
1501
B/op1506
B/op1.00
BenchmarkBasicModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkRBACModel - ns/op
5434
ns/op5494
ns/op0.99
BenchmarkRBACModel - B/op
2051
B/op2062
B/op0.99
BenchmarkRBACModel - allocs/op
35
allocs/op35
allocs/op1
BenchmarkRBACModelSizes/small - ns/op
46628
ns/op47369
ns/op0.98
BenchmarkRBACModelSizes/small - B/op
20092
B/op20170
B/op1.00
BenchmarkRBACModelSizes/small - allocs/op
480
allocs/op480
allocs/op1
BenchmarkRBACModelSizes/medium - ns/op
483379
ns/op496395
ns/op0.97
BenchmarkRBACModelSizes/medium - B/op
191219
B/op191741
B/op1.00
BenchmarkRBACModelSizes/medium - allocs/op
4828
allocs/op4829
allocs/op1.00
BenchmarkRBACModelSizes/large - ns/op
5200851
ns/op5279219
ns/op0.99
BenchmarkRBACModelSizes/large - B/op
1901769
B/op1901542
B/op1.00
BenchmarkRBACModelSizes/large - allocs/op
48228
allocs/op48213
allocs/op1.00
BenchmarkRBACModelSmall - ns/op
57585
ns/op57717
ns/op1.00
BenchmarkRBACModelSmall - B/op
20178
B/op20291
B/op0.99
BenchmarkRBACModelSmall - allocs/op
615
allocs/op615
allocs/op1
BenchmarkRBACModelMedium - ns/op
567656
ns/op571714
ns/op0.99
BenchmarkRBACModelMedium - B/op
194030
B/op194685
B/op1.00
BenchmarkRBACModelMedium - allocs/op
6021
allocs/op6021
allocs/op1
BenchmarkRBACModelLarge - ns/op
6142903
ns/op6045148
ns/op1.02
BenchmarkRBACModelLarge - B/op
1940030
B/op1941339
B/op1.00
BenchmarkRBACModelLarge - allocs/op
60602
allocs/op60608
allocs/op1.00
BenchmarkRBACModelWithResourceRoles - ns/op
4549
ns/op4590
ns/op0.99
BenchmarkRBACModelWithResourceRoles - B/op
1835
B/op1843
B/op1.00
BenchmarkRBACModelWithResourceRoles - allocs/op
27
allocs/op27
allocs/op1
BenchmarkRBACModelWithDomains - ns/op
5068
ns/op5139
ns/op0.99
BenchmarkRBACModelWithDomains - B/op
1817
B/op1822
B/op1.00
BenchmarkRBACModelWithDomains - allocs/op
25
allocs/op25
allocs/op1
BenchmarkABACModel - ns/op
2826
ns/op2834
ns/op1.00
BenchmarkABACModel - B/op
1527
B/op1531
B/op1.00
BenchmarkABACModel - allocs/op
17
allocs/op17
allocs/op1
BenchmarkABACRuleModel - ns/op
3870260
ns/op3890511
ns/op0.99
BenchmarkABACRuleModel - B/op
1313453
B/op1320609
B/op0.99
BenchmarkABACRuleModel - allocs/op
40089
allocs/op40091
allocs/op1.00
BenchmarkKeyMatchModel - ns/op
6030
ns/op6130
ns/op0.98
BenchmarkKeyMatchModel - B/op
3045
B/op3064
B/op0.99
BenchmarkKeyMatchModel - allocs/op
37
allocs/op37
allocs/op1
BenchmarkRBACModelWithDeny - ns/op
6839
ns/op7000
ns/op0.98
BenchmarkRBACModelWithDeny - B/op
2463
B/op2474
B/op1.00
BenchmarkRBACModelWithDeny - allocs/op
49
allocs/op49
allocs/op1
BenchmarkPriorityModel - ns/op
4241
ns/op4200
ns/op1.01
BenchmarkPriorityModel - B/op
1752
B/op1757
B/op1.00
BenchmarkPriorityModel - allocs/op
22
allocs/op22
allocs/op1
BenchmarkRBACModelWithDomainPatternLarge - ns/op
22943
ns/op22991
ns/op1.00
BenchmarkRBACModelWithDomainPatternLarge - B/op
16702
B/op16705
B/op1.00
BenchmarkRBACModelWithDomainPatternLarge - allocs/op
164
allocs/op164
allocs/op1
BenchmarkRoleManagerSmall - ns/op
69246
ns/op69768
ns/op0.99
BenchmarkRoleManagerSmall - B/op
11954
B/op11954
B/op1
BenchmarkRoleManagerSmall - allocs/op
797
allocs/op797
allocs/op1
BenchmarkRoleManagerMedium - ns/op
730483
ns/op736714
ns/op0.99
BenchmarkRoleManagerMedium - B/op
125914
B/op125915
B/op1.00
BenchmarkRoleManagerMedium - allocs/op
8741
allocs/op8741
allocs/op1
BenchmarkRoleManagerLarge - ns/op
8442428
ns/op8285580
ns/op1.02
BenchmarkRoleManagerLarge - B/op
1349926
B/op1349926
B/op1
BenchmarkRoleManagerLarge - allocs/op
89741
allocs/op89741
allocs/op1
BenchmarkBuildRoleLinksWithPatternLarge - ns/op
5651609100
ns/op5937835409
ns/op0.95
BenchmarkBuildRoleLinksWithPatternLarge - B/op
5320382720
B/op5335847336
B/op1.00
BenchmarkBuildRoleLinksWithPatternLarge - allocs/op
60943703
allocs/op60947073
allocs/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - ns/op
157609263
ns/op160150213
ns/op0.98
BenchmarkBuildRoleLinksWithDomainPatternLarge - B/op
140639131
B/op141139862
B/op1.00
BenchmarkBuildRoleLinksWithDomainPatternLarge - allocs/op
1676364
allocs/op1676456
allocs/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - ns/op
5848098355
ns/op6130166912
ns/op0.95
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - B/op
5460752040
B/op5473784224
B/op1.00
BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge - allocs/op
62554788
allocs/op62557797
allocs/op1.00
BenchmarkHasLinkWithPatternLarge - ns/op
9873
ns/op10376
ns/op0.95
BenchmarkHasLinkWithPatternLarge - B/op
7589
B/op7599
B/op1.00
BenchmarkHasLinkWithPatternLarge - allocs/op
111
allocs/op111
allocs/op1
BenchmarkHasLinkWithDomainPatternLarge - ns/op
488.6
ns/op485.6
ns/op1.01
BenchmarkHasLinkWithDomainPatternLarge - B/op
80
B/op80
B/op1
BenchmarkHasLinkWithDomainPatternLarge - allocs/op
5
allocs/op5
allocs/op1
BenchmarkHasLinkWithPatternAndDomainPatternLarge - ns/op
9850
ns/op10113
ns/op0.97
BenchmarkHasLinkWithPatternAndDomainPatternLarge - B/op
7584
B/op7604
B/op1.00
BenchmarkHasLinkWithPatternAndDomainPatternLarge - allocs/op
111
allocs/op111
allocs/op1
This comment was automatically generated by workflow using github-action-benchmark.