Skip to content

Commit 3996df5

Browse files
committed
fix the test to use setDiskWriteBatchThreshold
1 parent 17c2f99 commit 3996df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/benchmark/bm_vecsim_basics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void BM_VecSimBasics<index_type_t>::FlushBatchDisk(benchmark::State &st) {
332332
auto *hnsw_disk_index = dynamic_cast<HNSWDiskIndex<data_t, dist_t> *>(hnsw_index);
333333

334334
size_t flush_threshold = st.range(0);
335-
hnsw_disk_index->setBatchThreshold(flush_threshold);
335+
hnsw_disk_index->setDiskWriteBatchThreshold(flush_threshold);
336336
for (size_t i = 0; i < flush_threshold-1; i++) {
337337
// add vectors to fill the batch
338338
VecSimIndex_AddVector(hnsw_disk_index, QUERIES[i%N_QUERIES].data(), i);

0 commit comments

Comments
 (0)