Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: bump version Signed-off-by: Cheng JIANG <[email protected]> * feat: add clear_policy & rustfmt.toml Signed-off-by: Cheng JIANG <[email protected]> * feat: rename all_roles to all_domains Signed-off-by: Cheng JIANG <[email protected]> * feat: add new_raw method which doesn't load policy automatically Signed-off-by: Cheng JIANG <[email protected]> * feat: make CoreApi being able to be made into object Signed-off-by: Cheng JIANG <[email protected]> * Fix: typo in example code * fix: make IEnforcer interface being able to be made into object * fix: don't remove all the policies if field_values is empty Signed-off-by: Cheng JIANG <[email protected]> * fix: run format Signed-off-by: Cheng JIANG <[email protected]> * feat: upgrade rhai version to 0.18.1 Signed-off-by: Cheng JIANG <[email protected]> * feat: switch to lru-cache Signed-off-by: Cheng JIANG <[email protected]> * fix: remove unused ttl Signed-off-by: Cheng JIANG <[email protected]> * feat: bump deps' version Signed-off-by: Cheng JIANG <[email protected]> * feat: change cache interface to allow returning owned value Signed-off-by: Cheng JIANG <[email protected]> * feat: structrued logging Signed-off-by: Cheng JIANG <[email protected]> * improve: use static dispatchered cache in Rbac manager because we'll never replace it by custom cache Signed-off-by: Cheng JIANG <[email protected]> * improve: add unit test for escaping rule which sometimes needs to be evaluated Signed-off-by: Cheng JIANG <[email protected]> * upgrade rhai Signed-off-by: Cheng JIANG <[email protected]> * fix: potential dead lock in add_role fn Signed-off-by: Cheng JIANG <[email protected]> * improve: ignore add link request on same roles * improve: remove unecessary pub(crate) * improve: add is_enabled fn * feature: add serde support * fix: CI wasm check * fix: remove unwanted dep * improve: cached enforcer's bench * improve: rbac cache perf * improve: reset default features * feature: pattern matching * fix: missing serde * fix: example code in README * fix: example code
- Loading branch information
9c67ba4
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.
Rust Benchmark
b_benchmark_abac_model
5447
ns/iter (± 867
)5982
ns/iter (± 1178
)0.91
b_benchmark_basic_model
6216
ns/iter (± 1031
)6417
ns/iter (± 1114
)0.97
b_benchmark_cached_abac_model
1149
ns/iter (± 268
)290
ns/iter (± 49
)3.96
b_benchmark_cached_key_match
567
ns/iter (± 139
)299
ns/iter (± 58
)1.90
b_benchmark_cached_priority_model
549
ns/iter (± 206
)294
ns/iter (± 60
)1.87
b_benchmark_cached_rbac_model
537
ns/iter (± 121
)290
ns/iter (± 46
)1.85
b_benchmark_cached_rbac_model_large
495
ns/iter (± 69
)310
ns/iter (± 52
)1.60
b_benchmark_cached_rbac_model_medium
551
ns/iter (± 102
)286
ns/iter (± 35
)1.93
b_benchmark_cached_rbac_model_small
576
ns/iter (± 111
)286
ns/iter (± 46
)2.01
b_benchmark_cached_rbac_model_with_domains
949
ns/iter (± 133
)338
ns/iter (± 45
)2.81
b_benchmark_cached_rbac_with_deny
587
ns/iter (± 92
)286
ns/iter (± 66
)2.05
b_benchmark_cached_rbac_with_resource_roles
595
ns/iter (± 83
)283
ns/iter (± 64
)2.10
b_benchmark_key_match
26783
ns/iter (± 3312
)24779
ns/iter (± 4504
)1.08
b_benchmark_priority_model
7252
ns/iter (± 1353
)6847
ns/iter (± 1194
)1.06
b_benchmark_raw
7
ns/iter (± 1
)7
ns/iter (± 1
)1
b_benchmark_rbac_model
9933
ns/iter (± 1916
)9324
ns/iter (± 1978
)1.07
b_benchmark_rbac_model_large
18030250
ns/iter (± 2233963
)19042842
ns/iter (± 2639852
)0.95
b_benchmark_rbac_model_medium
1822806
ns/iter (± 254048
)1896132
ns/iter (± 312519
)0.96
b_benchmark_rbac_model_small
182270
ns/iter (± 38924
)183917
ns/iter (± 29194
)0.99
b_benchmark_rbac_model_with_domains
9898
ns/iter (± 2079
)9259
ns/iter (± 1412
)1.07
b_benchmark_rbac_with_deny
13323
ns/iter (± 2028
)13408
ns/iter (± 2816
)0.99
b_benchmark_rbac_with_resource_roles
8019
ns/iter (± 2075
)7161
ns/iter (± 1148
)1.12
b_benchmark_role_manager_large
8640797
ns/iter (± 1005575
)8682064
ns/iter (± 1385016
)1.00
b_benchmark_role_manager_medium
700620
ns/iter (± 107941
)776090
ns/iter (± 174067
)0.90
b_benchmark_role_manager_small
76701
ns/iter (± 15764
)78286
ns/iter (± 13749
)0.98
b_benmark_cached_basic_model
596
ns/iter (± 115
)284
ns/iter (± 48
)2.10
This comment was automatically generated by workflow using github-action-benchmark.
9c67ba4
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 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.50
.b_benchmark_cached_abac_model
1149
ns/iter (± 268
)290
ns/iter (± 49
)3.96
b_benchmark_cached_key_match
567
ns/iter (± 139
)299
ns/iter (± 58
)1.90
b_benchmark_cached_priority_model
549
ns/iter (± 206
)294
ns/iter (± 60
)1.87
b_benchmark_cached_rbac_model
537
ns/iter (± 121
)290
ns/iter (± 46
)1.85
b_benchmark_cached_rbac_model_large
495
ns/iter (± 69
)310
ns/iter (± 52
)1.60
b_benchmark_cached_rbac_model_medium
551
ns/iter (± 102
)286
ns/iter (± 35
)1.93
b_benchmark_cached_rbac_model_small
576
ns/iter (± 111
)286
ns/iter (± 46
)2.01
b_benchmark_cached_rbac_model_with_domains
949
ns/iter (± 133
)338
ns/iter (± 45
)2.81
b_benchmark_cached_rbac_with_deny
587
ns/iter (± 92
)286
ns/iter (± 66
)2.05
b_benchmark_cached_rbac_with_resource_roles
595
ns/iter (± 83
)283
ns/iter (± 64
)2.10
b_benmark_cached_basic_model
596
ns/iter (± 115
)284
ns/iter (± 48
)2.10
This comment was automatically generated by workflow using github-action-benchmark.
CC: @GopherJ