[skip ci] Add comments of insert func on benchmark (#10157)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/10188/head
wt 2021-10-19 16:49:44 +08:00 committed by GitHub
parent 17e4534d26
commit d36926d366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -123,8 +123,10 @@ class BaseRunner(object):
while i < (size // vectors_per_file):
vectors = []
if vectors_per_file >= ni:
# Get the path of the specified file
file_name = utils.gen_file_name(i, dimension, data_type)
# logger.info("Load npy file: %s start" % file_name)
# Load file content
data = np.load(file_name)
# logger.info("Load npy file: %s end" % file_name)
for j in range(vectors_per_file // ni):