remove new_with_config_for_benches(caching_enabled) (#29231)
This commit is contained in:
parent
5983363b03
commit
7034f4cbbe
|
@ -72,7 +72,6 @@ fn main() {
|
||||||
vec![path],
|
vec![path],
|
||||||
&ClusterType::Testnet,
|
&ClusterType::Testnet,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
println!("Creating {num_accounts} accounts");
|
println!("Creating {num_accounts} accounts");
|
||||||
|
|
|
@ -86,7 +86,6 @@ fn test_accounts_hash_bank_hash(bencher: &mut Bencher) {
|
||||||
vec![PathBuf::from("bench_accounts_hash_internal")],
|
vec![PathBuf::from("bench_accounts_hash_internal")],
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
let mut pubkeys: Vec<Pubkey> = vec![];
|
let mut pubkeys: Vec<Pubkey> = vec![];
|
||||||
|
@ -120,7 +119,6 @@ fn test_update_accounts_hash(bencher: &mut Bencher) {
|
||||||
vec![PathBuf::from("update_accounts_hash")],
|
vec![PathBuf::from("update_accounts_hash")],
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
let mut pubkeys: Vec<Pubkey> = vec![];
|
let mut pubkeys: Vec<Pubkey> = vec![];
|
||||||
|
@ -140,7 +138,6 @@ fn test_accounts_delta_hash(bencher: &mut Bencher) {
|
||||||
vec![PathBuf::from("accounts_delta_hash")],
|
vec![PathBuf::from("accounts_delta_hash")],
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
let mut pubkeys: Vec<Pubkey> = vec![];
|
let mut pubkeys: Vec<Pubkey> = vec![];
|
||||||
|
@ -157,7 +154,6 @@ fn bench_delete_dependencies(bencher: &mut Bencher) {
|
||||||
vec![PathBuf::from("accounts_delete_deps")],
|
vec![PathBuf::from("accounts_delete_deps")],
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
let mut old_pubkey = Pubkey::default();
|
let mut old_pubkey = Pubkey::default();
|
||||||
|
@ -190,7 +186,6 @@ fn store_accounts_with_possible_contention<F: 'static>(
|
||||||
],
|
],
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
));
|
));
|
||||||
let num_keys = 1000;
|
let num_keys = 1000;
|
||||||
|
@ -327,7 +322,6 @@ fn setup_bench_dashmap_iter() -> (Arc<Accounts>, DashMap<Pubkey, (AccountSharedD
|
||||||
],
|
],
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -382,7 +376,6 @@ fn bench_load_largest_accounts(b: &mut Bencher) {
|
||||||
Vec::new(),
|
Vec::new(),
|
||||||
&ClusterType::Development,
|
&ClusterType::Development,
|
||||||
AccountSecondaryIndexes::default(),
|
AccountSecondaryIndexes::default(),
|
||||||
false,
|
|
||||||
AccountShrinkThreshold::default(),
|
AccountShrinkThreshold::default(),
|
||||||
);
|
);
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
|
|
|
@ -174,7 +174,6 @@ impl Accounts {
|
||||||
paths: Vec<PathBuf>,
|
paths: Vec<PathBuf>,
|
||||||
cluster_type: &ClusterType,
|
cluster_type: &ClusterType,
|
||||||
account_indexes: AccountSecondaryIndexes,
|
account_indexes: AccountSecondaryIndexes,
|
||||||
_caching_enabled: bool,
|
|
||||||
shrink_ratio: AccountShrinkThreshold,
|
shrink_ratio: AccountShrinkThreshold,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self::new_with_config(
|
Self::new_with_config(
|
||||||
|
|
Loading…
Reference in New Issue