Skip to content

Commit a55d543

Browse files
committed
print every 5 seconds
1 parent 3996df5 commit a55d543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/benchmark/data/scripts/hnsw_disk_serializer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,21 +445,21 @@ int main(int argc, char *argv[]) {
445445
break;
446446
}
447447

448-
// Print progress every 1 seconds
448+
// Print progress every 5 seconds
449449
size_t current_indexed = VecSimIndex_IndexSize(index);
450450
size_t queue_size = mock_thread_pool->jobQ.size();
451451

452452
auto elapsed = std::chrono::duration_cast<std::chrono::seconds>(
453453
std::chrono::steady_clock::now() - start_time).count();
454454

455-
if (current_indexed != last_indexed || elapsed % 1 == 0) {
455+
if (current_indexed != last_indexed || elapsed % 5 == 0) {
456456
std::cout << "\rIndexed: " << current_indexed << "/" << num_vectors
457457
<< " | Queue: " << queue_size
458458
<< " | Time: " << elapsed << "s " << std::flush;
459459
last_indexed = current_indexed;
460460
}
461461

462-
std::this_thread::sleep_for(std::chrono::milliseconds(100));
462+
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
463463
}
464464
std::cout << "\n";
465465

0 commit comments

Comments
 (0)