DDtKey / actix-web-authz-benchmark

Minimal examples of using casbin-rs and actix-web-grants and performance comparisons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal examples of using casbin-rs and actix-web-grants and performance comparisons

The wrk tool was used for benchmarks (all commands used can be found in bench.sh)

How to run benchmarks
  1. To run you need cargo and wrk installed
  2. Clone the actix-web-authz-benchmark repository
  3. Run the shell script bench.sh in the root of project directory
sh bench.sh

Table of benchmark results

Benchmark actix-web-grants casbin-rs
Latency Req/Sec Latency Req/Sec
Allowed Endpoint 4.41 ms 22.69k 6.18 ms 16.27k
Denied Endpoint 4.94 ms 20.23k 6.70 ms 14.98k

rustc: v1.52.0 (stable); CPU: 2,6 GHz 6-Core Intel Core i7; RAM: 16 GB

About

Minimal examples of using casbin-rs and actix-web-grants and performance comparisons


Languages

Language:Rust 82.7%Language:Shell 17.3%