chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

21
vendor/deadpool/benches/unmanaged.rs vendored Normal file
View File

@@ -0,0 +1,21 @@
use criterion::{criterion_group, criterion_main, Criterion};
use deadpool::unmanaged::Pool;
const ITERATIONS: usize = 1_000_000;
#[tokio::main]
async fn use_pool() {
let pool = Pool::new(16);
pool.add(()).await.unwrap();
for _ in 0..ITERATIONS {
let _ = pool.get().await.unwrap();
}
}
fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("use_pool", |b| b.iter(use_pool));
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);