An open API service indexing awesome lists of open source software.

https://github.com/ddtkey/actix-web-authz-benchmark

Minimal examples of using casbin-rs and actix-web-grants and performance comparisons
https://github.com/ddtkey/actix-web-authz-benchmark

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

### 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
```shell
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

[`actix-web-grants`]: https://github.com/DDtKey/actix-web-grants
[`casbin-rs`]: https://github.com/casbin-rs/actix-casbin-auth
[`wrk`]: https://github.com/wg/wrk
[`cargo`]: https://doc.rust-lang.org/stable/cargo/getting-started/installation.html