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
- Host: GitHub
- URL: https://github.com/ddtkey/actix-web-authz-benchmark
- Owner: DDtKey
- Created: 2021-05-04T19:42:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T16:55:44.000Z (over 4 years ago)
- Last Synced: 2025-02-12T14:55:37.042Z (over 1 year ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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