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 enforce_ex api #366

Merged
merged 3 commits into from
Feb 2, 2025
Merged

feat: add enforce_ex api #366

merged 3 commits into from
Feb 2, 2025

Conversation

liulifox233
Copy link
Contributor

@liulifox233 liulifox233 commented Feb 1, 2025

Copy link

github-actions bot commented Feb 1, 2025

Benchmark for 43f856e

Click to view benchmark
Test PR Benchmark Master Benchmark %
b_benchmark_rbac_model_large 9.9±0.18ms 9.8±0.04ms +1.02%
benchmark priority model 4.2±0.05µs 4.2±0.06µs 0.00%
benchmark_abac_model 2.5±0.05µs 2.5±0.02µs 0.00%
benchmark_basic_model 3.8±0.16µs 3.6±0.06µs +5.56%
benchmark_key_match 6.7±0.12µs 6.9±0.27µs -2.90%
benchmark_raw 0.0±0.00ns 0.0±0.00ns NaN%
benchmark_rbac_model 6.1±0.06µs 6.1±0.13µs 0.00%
benchmark_rbac_model_medium 869.1±4.52µs 866.2±7.23µs +0.33%
benchmark_rbac_model_with_domains 5.9±0.08µs 6.1±0.09µs -3.28%
benchmark_rbac_with_deny 8.3±0.11µs 8.4±0.22µs -1.19%
benchmark_rbac_with_resource_roles 4.4±0.06µs 4.3±0.05µs +2.33%
benchmark_role_manager_large 4.5±0.03ms 4.5±0.03ms 0.00%
benchmark_role_manager_medium 290.4±2.87µs 294.3±3.93µs -1.33%
benchmark_role_manager_small 28.7±0.67µs 28.4±0.28µs +1.06%

Copy link

github-actions bot commented Feb 2, 2025

Benchmark for 43f856e

Click to view benchmark
Test PR Benchmark Master Benchmark %
b_benchmark_rbac_model_large 9.9±0.06ms 10.1±0.02ms -1.98%
benchmark priority model 4.3±0.04µs 4.2±0.05µs +2.38%
benchmark_abac_model 2.6±0.05µs 2.5±0.03µs +4.00%
benchmark_basic_model 3.8±0.12µs 3.8±0.12µs 0.00%
benchmark_key_match 7.0±0.09µs 6.8±0.09µs +2.94%
benchmark_raw 0.0±0.00ns 0.0±0.00ns NaN%
benchmark_rbac_model 6.1±0.09µs 6.1±0.08µs 0.00%
benchmark_rbac_model_medium 827.6±12.07µs 848.0±9.19µs -2.41%
benchmark_rbac_model_with_domains 6.0±0.06µs 6.0±0.07µs 0.00%
benchmark_rbac_with_deny 8.7±0.22µs 8.5±0.09µs +2.35%
benchmark_rbac_with_resource_roles 4.4±0.05µs 4.4±0.08µs 0.00%
benchmark_role_manager_large 4.5±0.03ms 4.5±0.02ms 0.00%
benchmark_role_manager_medium 306.0±10.16µs 305.7±2.99µs +0.10%
benchmark_role_manager_small 28.9±0.76µs 28.6±0.41µs +1.05%

@liulifox233 liulifox233 changed the title feat: add enforce_explain api feat: add enforce_ex api Feb 2, 2025
Copy link

github-actions bot commented Feb 2, 2025

Benchmark for 43f856e

Click to view benchmark
Test PR Benchmark Master Benchmark %
b_benchmark_rbac_model_large 9.7±0.06ms 10.0±0.07ms -3.00%
benchmark priority model 4.2±0.06µs 4.2±0.04µs 0.00%
benchmark_abac_model 2.5±0.08µs 2.4±0.02µs +4.17%
benchmark_basic_model 3.7±0.07µs 3.6±0.06µs +2.78%
benchmark_key_match 7.0±0.10µs 6.8±0.09µs +2.94%
benchmark_raw 0.0±0.00ns 0.0±0.00ns NaN%
benchmark_rbac_model 6.2±0.07µs 6.1±0.06µs +1.64%
benchmark_rbac_model_medium 827.6±20.96µs 874.6±10.19µs -5.37%
benchmark_rbac_model_with_domains 5.9±0.08µs 5.9±0.09µs 0.00%
benchmark_rbac_with_deny 8.8±0.06µs 8.5±0.11µs +3.53%
benchmark_rbac_with_resource_roles 4.4±0.04µs 4.4±0.05µs 0.00%
benchmark_role_manager_large 4.5±0.04ms 4.5±0.03ms 0.00%
benchmark_role_manager_medium 312.9±12.56µs 302.3±3.38µs +3.51%
benchmark_role_manager_small 28.8±0.43µs 28.8±0.41µs 0.00%

@hsluoyz hsluoyz merged commit 369d2e4 into casbin:master Feb 2, 2025
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.

2 participants