mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comments of insert func on benchmark (#10157)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/10188/head
parent
17e4534d26
commit
d36926d366
|
@ -123,8 +123,10 @@ class BaseRunner(object):
|
||||||
while i < (size // vectors_per_file):
|
while i < (size // vectors_per_file):
|
||||||
vectors = []
|
vectors = []
|
||||||
if vectors_per_file >= ni:
|
if vectors_per_file >= ni:
|
||||||
|
# Get the path of the specified file
|
||||||
file_name = utils.gen_file_name(i, dimension, data_type)
|
file_name = utils.gen_file_name(i, dimension, data_type)
|
||||||
# logger.info("Load npy file: %s start" % file_name)
|
# logger.info("Load npy file: %s start" % file_name)
|
||||||
|
# Load file content
|
||||||
data = np.load(file_name)
|
data = np.load(file_name)
|
||||||
# logger.info("Load npy file: %s end" % file_name)
|
# logger.info("Load npy file: %s end" % file_name)
|
||||||
for j in range(vectors_per_file // ni):
|
for j in range(vectors_per_file // ni):
|
||||||
|
|
Loading…
Reference in New Issue