Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add casbin_js_get_permission_for_user #339

Merged
merged 4 commits into from
Sep 13, 2024
Merged

Conversation

MuZhou233
Copy link
Contributor

@MuZhou233 MuZhou233 commented Sep 7, 2024

Fix: #334

Copy link

github-actions bot commented Sep 7, 2024

Benchmark for 368d04a

Click to view benchmark
Test PR Benchmark Master Benchmark %
b_benchmark_rbac_model_large 9.8±0.10ms 10.7±0.08ms -8.41%
benchmark priority model 4.3±0.07µs 4.3±0.07µs 0.00%
benchmark_abac_model 2.5±0.04µs 2.6±0.12µs -3.85%
benchmark_basic_model 3.9±0.54µs 3.8±0.06µs +2.63%
benchmark_key_match 7.0±0.15µs 7.3±0.09µs -4.11%
benchmark_raw 0.0±0.00ns 0.0±0.00ns NaN%
benchmark_rbac_model 6.2±0.26µs 6.4±0.09µs -3.13%
benchmark_rbac_model_medium 901.5±25.77µs 969.9±21.31µs -7.05%
benchmark_rbac_model_with_domains 6.0±0.07µs 6.1±0.46µs -1.64%
benchmark_rbac_with_deny 8.8±0.14µs 9.0±0.18µs -2.22%
benchmark_rbac_with_resource_roles 4.4±0.07µs 4.5±0.04µs -2.22%
benchmark_role_manager_large 4.5±0.03ms 4.6±0.28ms -2.17%
benchmark_role_manager_medium 310.3±7.43µs 303.6±5.13µs +2.21%
benchmark_role_manager_small 92.0±4.48µs 93.0±0.50µs -1.08%

@MuZhou233 MuZhou233 marked this pull request as ready for review September 13, 2024 10:52
Copy link

Benchmark for 368d04a

Click to view benchmark
Test PR Benchmark Master Benchmark %
b_benchmark_rbac_model_large 9.9±0.03ms 10.4±0.08ms -4.81%
benchmark priority model 4.1±0.05µs 4.3±0.06µs -4.65%
benchmark_abac_model 2.5±0.04µs 2.5±0.03µs 0.00%
benchmark_basic_model 3.8±0.06µs 3.9±0.06µs -2.56%
benchmark_key_match 7.2±0.08µs 7.1±0.06µs +1.41%
benchmark_raw 0.0±0.00ns 0.0±0.00ns NaN%
benchmark_rbac_model 6.2±0.09µs 6.5±0.11µs -4.62%
benchmark_rbac_model_medium 835.9±8.61µs 892.6±9.53µs -6.35%
benchmark_rbac_model_with_domains 5.9±0.25µs 5.9±0.07µs 0.00%
benchmark_rbac_with_deny 8.9±0.08µs 9.0±0.06µs -1.11%
benchmark_rbac_with_resource_roles 4.3±0.09µs 4.5±0.04µs -4.44%
benchmark_role_manager_large 4.7±0.36ms 4.6±0.03ms +2.17%
benchmark_role_manager_medium 308.3±4.48µs 305.4±7.05µs +0.95%
benchmark_role_manager_small 90.4±0.88µs 93.6±0.81µs -3.42%

Copy link

Benchmark for 368d04a

Click to view benchmark
Test PR Benchmark Master Benchmark %
b_benchmark_rbac_model_large 11.0±0.30ms 10.7±0.32ms +2.80%
benchmark priority model 4.3±0.04µs 4.2±0.06µs +2.38%
benchmark_abac_model 2.5±0.02µs 2.5±0.04µs 0.00%
benchmark_basic_model 3.8±0.10µs 3.8±0.03µs 0.00%
benchmark_key_match 7.2±0.11µs 7.1±0.13µs +1.41%
benchmark_raw 0.0±0.00ns 0.0±0.00ns NaN%
benchmark_rbac_model 6.4±0.09µs 6.5±0.10µs -1.54%
benchmark_rbac_model_medium 950.6±6.58µs 958.3±9.54µs -0.80%
benchmark_rbac_model_with_domains 6.0±0.06µs 6.0±0.11µs 0.00%
benchmark_rbac_with_deny 9.1±0.12µs 8.8±0.18µs +3.41%
benchmark_rbac_with_resource_roles 4.5±0.29µs 4.5±0.08µs 0.00%
benchmark_role_manager_large 4.7±0.08ms 4.6±0.03ms +2.17%
benchmark_role_manager_medium 302.1±2.42µs 302.4±2.87µs -0.10%
benchmark_role_manager_small 99.5±1.81µs 99.0±5.32µs +0.51%

@hsluoyz hsluoyz merged commit f51f24e into casbin:master Sep 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CasbinJsGetPermissionForUser API for Rust
2 participants