casbin / casbin-rs

An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
https://casbin.org
Apache License 2.0
863 stars 74 forks source link

feat: Migrate to Criterion benchmark #250

Closed 0xethsign closed 3 years ago

0xethsign commented 3 years ago

This PR just adds the criterion.rs bench. Github actions support for criterion will be added in the next PR. This is because benchmark build will fail now, since there is no benchmark stats to compare with in the master branch.

Signed-off-by: smrpn samarpan_d@pp.iitr.ac.in

codecov[bot] commented 3 years ago

Codecov Report

Merging #250 (7a0a75d) into master (6f92b17) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #250   +/-   ##
=======================================
  Coverage   79.99%   79.99%           
=======================================
  Files          22       22           
  Lines        3429     3429           
=======================================
  Hits         2743     2743           
  Misses        686      686           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6f92b17...7a0a75d. Read the comment docs.

0xethsign commented 3 years ago

@hackerchai please review this

hackerchai commented 3 years ago

lgtm