From bd86f41e18ff2ef5207fa59d5242933c7057107d Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Sat, 18 Sep 2021 09:53:44 -0500 Subject: [PATCH] acct idx tests use 2 bins instead of 8k (#19996) --- runtime/src/accounts_index.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 8d41f08f83..961d23eafd 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -32,8 +32,8 @@ use thiserror::Error; pub const ITER_BATCH_SIZE: usize = 1000; pub const BINS_DEFAULT: usize = 8192; -pub const BINS_FOR_TESTING: usize = BINS_DEFAULT; -pub const BINS_FOR_BENCHMARKS: usize = BINS_DEFAULT; +pub const BINS_FOR_TESTING: usize = 2; // we want > 1, but each bin is a few disk files with a disk based index, so fewer is better +pub const BINS_FOR_BENCHMARKS: usize = 2; pub const FLUSH_THREADS_TESTING: usize = 1; pub const ACCOUNTS_INDEX_CONFIG_FOR_TESTING: AccountsIndexConfig = AccountsIndexConfig { bins: Some(BINS_FOR_TESTING),