8 stable releases
4.5.11 | Nov 16, 2024 |
---|---|
4.5.10 | Oct 9, 2024 |
4.5.9 | May 10, 2024 |
4.5.8 | Feb 1, 2024 |
4.5.4 | Dec 29, 2023 |
#2086 in Database interfaces
2,294 downloads per month
Used in 22 crates
(3 directly)
175KB
5K
SLoC
rbdc driver connection pool based on FastPool
way fast_pool?
- fast get() method performance
//windows:
//---- bench_pool stdout ----
//Time: 4.0313ms ,each:40 ns/op
//QPS: 24749412 QPS/s
//macos:
//---- bench_pool stdout ----
// Time: 6.373708ms ,each:63 ns/op
// QPS: 15683710 QPS/s
- for example:
use rbatis::RBatis;
use rbdc_pool_fast::FastPool;
use rbdc_sqlite::{SqliteConnectOptions, SqliteDriver};
let rb=RBatis::new();
let opts=SqliteConnectOptions::new();
let _ = rb.init_option::<SqliteDriver, SqliteConnectOptions, FastPool>(SqliteDriver{},opts);
Dependencies
~8–17MB
~224K SLoC