Skip to content

Commit

Permalink
Merge pull request #247 from hackerchai/fix/readme
Browse files Browse the repository at this point in the history
Fix: fix README.md
  • Loading branch information
hackerchai authored Apr 6, 2021
2 parents b434765 + 9fa7fc7 commit 5ee0e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tokio = { version = "1.4.0", features = ["fs", "io-util"] }

use casbin::prelude::*;

#[async_std::main]
#[tokio::main]
async fn main() -> Result<()> {
let mut e = Enforcer::new("examples/rbac_with_domains_model.conf", "examples/rbac_with_domains_policy.csv").await?;
e.enable_log(true);
Expand Down

1 comment on commit 5ee0e10

@GopherJ
Copy link
Member

@GopherJ GopherJ commented on 5ee0e10 Apr 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rust Benchmark

Benchmark suite Current: 5ee0e10 Previous: b434765 Ratio
b_benchmark_abac_model 4857 ns/iter (± 164) 4649 ns/iter (± 1395) 1.04
b_benchmark_basic_model 6336 ns/iter (± 873) 6794 ns/iter (± 1126) 0.93
b_benchmark_cached_abac_model 961 ns/iter (± 31) 1054 ns/iter (± 157) 0.91
b_benchmark_cached_key_match 449 ns/iter (± 26) 453 ns/iter (± 125) 0.99
b_benchmark_cached_priority_model 439 ns/iter (± 49) 435 ns/iter (± 117) 1.01
b_benchmark_cached_rbac_model 439 ns/iter (± 12) 418 ns/iter (± 118) 1.05
b_benchmark_cached_rbac_model_large 443 ns/iter (± 13) 420 ns/iter (± 78) 1.05
b_benchmark_cached_rbac_model_medium 434 ns/iter (± 75) 424 ns/iter (± 137) 1.02
b_benchmark_cached_rbac_model_small 442 ns/iter (± 19) 441 ns/iter (± 94) 1.00
b_benchmark_cached_rbac_model_with_domains 653 ns/iter (± 66) 635 ns/iter (± 139) 1.03
b_benchmark_cached_rbac_with_deny 442 ns/iter (± 26) 414 ns/iter (± 108) 1.07
b_benchmark_cached_rbac_with_resource_roles 443 ns/iter (± 12) 424 ns/iter (± 107) 1.04
b_benchmark_key_match 25616 ns/iter (± 2890) 25832 ns/iter (± 4739) 0.99
b_benchmark_priority_model 6994 ns/iter (± 341) 6537 ns/iter (± 2270) 1.07
b_benchmark_raw 16 ns/iter (± 0) 17 ns/iter (± 2) 0.94
b_benchmark_rbac_model 9345 ns/iter (± 617) 8830 ns/iter (± 2540) 1.06
b_benchmark_rbac_model_large 14963410 ns/iter (± 1215460) 15797151 ns/iter (± 5258084) 0.95
b_benchmark_rbac_model_medium 1457949 ns/iter (± 302710) 1434726 ns/iter (± 350273) 1.02
b_benchmark_rbac_model_small 146657 ns/iter (± 31235) 153256 ns/iter (± 39234) 0.96
b_benchmark_rbac_model_with_domains 9681 ns/iter (± 3422) 9176 ns/iter (± 2913) 1.06
b_benchmark_rbac_with_deny 12588 ns/iter (± 3513) 13089 ns/iter (± 3358) 0.96
b_benchmark_rbac_with_resource_roles 7489 ns/iter (± 610) 7828 ns/iter (± 1233) 0.96
b_benchmark_role_manager_large 7924355 ns/iter (± 912956) 8198136 ns/iter (± 2272983) 0.97
b_benchmark_role_manager_medium 751519 ns/iter (± 118164) 736933 ns/iter (± 172629) 1.02
b_benchmark_role_manager_small 72249 ns/iter (± 13021) 68016 ns/iter (± 16925) 1.06
b_benmark_cached_basic_model 440 ns/iter (± 82) 406 ns/iter (± 98) 1.08

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.