Skip to content

Commit 56aeef4

Browse files
authored
Update README.md
1 parent 4362569 commit 56aeef4

File tree

1 file changed

+41
-4
lines changed

1 file changed

+41
-4
lines changed

qp/README.md

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,27 @@
22

33
> Rust Async Resource Pool
44
5-
[![Rust](https://img.shields.io/badge/rust-2021-black.svg?logo=rust&logoColor=white&style=for-the-badge)](https://doc.rust-lang.org/edition-guide/rust-2021/index.html)
6-
[![Tokio](https://img.shields.io/badge/tokio-black.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAgMTA4Ij48ZyBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yOS44OTMgNjguNzk0bC0xLjY4Ny45NzQgMiAzLjQ2NCAxLjY4Ny0uOTc0IDEyLjIxNC03LjA1MiAxLjY4Ny0uOTc0LTItMy40NjQtMS42ODcuOTc0ek04OC4xMDcgNzIuMjU4bDEuNjg3Ljk3NCAyLTMuNDY0LTEuNjg3LS45NzQtMTIuMjE0LTcuMDUyLTEuNjg3LS45NzQtMiAzLjQ2NCAxLjY4Ny45NzR6Ii8+PHBhdGggZD0iTTgwIDU0YzAtMTEuMDQ2LTguOTU0LTIwLTIwLTIwcy0yMCA4Ljk1NC0yMCAyMCA4Ljk1NCAyMCAyMCAyMCAyMC04Ljk1NCAyMC0yMHptLTM1Ljc2NyAwYzAtOC43MDggNy4wNTktMTUuNzY3IDE1Ljc2Ny0xNS43NjcgOC43MDggMCAxNS43NjcgNy4wNTkgMTUuNzY3IDE1Ljc2NyAwIDguNzA4LTcuMDU5IDE1Ljc2Ny0xNS43NjcgMTUuNzY3LTguNzA4IDAtMTUuNzY3LTcuMDU5LTE1Ljc2Ny0xNS43Njd6Ii8+PGNpcmNsZSBjeD0iMjQiIGN5PSI3NSIgcj0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Tc1Ljg5MyA0Mi43OTRsLTEuNjg3Ljk3NCAyIDMuNDY0IDEuNjg3LS45NzQgMTIuMjE0LTcuMDUyIDEuNjg3LS45NzQtMi0zLjQ2NC0xLjY4Ny45NzR6Ii8+PC9nPjwvc3ZnPg==&style=for-the-badge)](https://tokio.rs/)
7-
[![GitHub Workflow](https://img.shields.io/github/workflow/status/Astro36/qp/Rust?logo=github&logoColor=white&style=for-the-badge)](https://github.com/Astro36/qp/actions)
8-
[![License](https://img.shields.io/github/license/Astro36/qp?style=for-the-badge)](./LICENSE)
5+
[![Crates.io](https://img.shields.io/crates/v/qp?style=for-the-badge)](https://crates.io/crates/qp)
6+
[![Docs.rs](https://img.shields.io/docsrs/qp?style=for-the-badge)](https://docs.rs/qp)
7+
[![Rust](https://img.shields.io/badge/rust-2021-black.svg?style=for-the-badge)](https://doc.rust-lang.org/edition-guide/rust-2021/index.html)
8+
[![Rust](https://img.shields.io/badge/rustc->=1.56-black.svg?style=for-the-badge)](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html)
9+
[![GitHub Workflow](https://img.shields.io/github/workflow/status/Astro36/qp/Quick%20Pool?style=for-the-badge)](https://github.com/Astro36/qp/actions/workflows/qp.yml)
10+
[![Crates.io](https://img.shields.io/crates/d/qp?style=for-the-badge)](https://crates.io/crates/qp)
11+
[![License](https://img.shields.io/crates/l/qp?style=for-the-badge)](./LICENSE)
912

1013
## Usage
1114

15+
### DBCP
16+
17+
| Database | Backend | Adapter | Version |
18+
| ------------ | ---------------- | ------------- | ---------------------- |
19+
| [PostgreSQL] | [tokio-postgres] | [qp-postgres] | ![qp-postgres-version] |
20+
21+
[PostgreSQL]: https://www.postgresql.org/
22+
[tokio-postgres]: https://crates.io/crates/tokio-postgres
23+
[qp-postgres]: https://crates.io/crates/qp-postgres
24+
[qp-postgres-version]: https://img.shields.io/crates/v/qp-postgres?style=for-the-badge
25+
1226
### Example
1327

1428
```rust
@@ -68,6 +82,29 @@ async fn main() {
6882
}
6983
```
7084

85+
## Alternatives
86+
87+
### Performance Comparison
88+
89+
| [bb8] | [deadpool] |
90+
| ------------ | ----------------- |
91+
| ![bb8-bench] | ![deadpool-bench] |
92+
93+
| [mobc] | [qp] |
94+
| ------------- | ----------- |
95+
| ![mobc-bench] | ![qp-bench] |
96+
97+
[bb8]: https://crates.io/crates/bb8
98+
[deadpool]: https://crates.io/crates/deadpool
99+
[mobc]: https://crates.io/crates/mobc
100+
[qp]: https://crates.io/crates/qp
101+
[bb8-bench]: https://astro36.github.io/qp/core/bb8/pool=16%20worker=64/report/pdf.svg
102+
[deadpool-bench]: https://astro36.github.io/qp/core/deadpool/pool=16%20worker=64/report/pdf.svg
103+
[mobc-bench]: https://astro36.github.io/qp/core/mobc/pool=16%20worker=64/report/pdf.svg
104+
[qp-bench]: https://astro36.github.io/qp/core/qp/pool=16%20worker=64/report/pdf.svg
105+
106+
For more information, see [Quick Pool Benchmark](./qp-bench/README.md).
107+
71108
## License
72109

73110
```text

0 commit comments

Comments
 (0)