mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(lint): lint warnings for db benchmark tools (#11011)
This commit is contained in:
@ -1,14 +1,22 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use std::{path::Path, sync::Arc};
|
||||
|
||||
use criterion::{
|
||||
black_box, criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion,
|
||||
};
|
||||
use pprof::criterion::{Output, PProfProfiler};
|
||||
use reth_db::tables::*;
|
||||
use reth_db::{tables::*, test_utils::create_test_rw_db_with_path};
|
||||
use reth_db_api::{
|
||||
cursor::{DbCursorRO, DbCursorRW, DbDupCursorRO, DbDupCursorRW},
|
||||
table::{Decode, Decompress, DupSort},
|
||||
transaction::DbTx,
|
||||
database::Database,
|
||||
table::{Compress, Decode, Decompress, DupSort, Encode, Table},
|
||||
transaction::{DbTx, DbTxMut},
|
||||
};
|
||||
use reth_fs_util as fs;
|
||||
|
||||
mod utils;
|
||||
use utils::*;
|
||||
|
||||
criterion_group! {
|
||||
name = benches;
|
||||
@ -291,5 +299,3 @@ where
|
||||
|
||||
// group.bench_function(format!("{}.RandomRead", T::NAME), |b| {});
|
||||
}
|
||||
|
||||
include!("./utils.rs");
|
||||
|
||||
Reference in New Issue
Block a user