mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 19:08:30 +08:00
[skip ci] Add new func on benchmark (#10568)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
parent
5f4348ec2a
commit
2ab7891102
@ -3,6 +3,7 @@ import time
|
|||||||
import logging
|
import logging
|
||||||
import string
|
import string
|
||||||
import random
|
import random
|
||||||
|
import json
|
||||||
from yaml.representer import SafeRepresenter
|
from yaml.representer import SafeRepresenter
|
||||||
# from yaml import full_load, dump
|
# from yaml import full_load, dump
|
||||||
import yaml
|
import yaml
|
||||||
@ -201,3 +202,9 @@ def search_param_analysis(vector_query, filter_query):
|
|||||||
}
|
}
|
||||||
# logger.debug("[search_param_analysis] search_param_analysis: %s" % str(result))
|
# logger.debug("[search_param_analysis] search_param_analysis: %s" % str(result))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
def read_json_file(file_name):
|
||||||
|
with open(file_name) as f:
|
||||||
|
file_dict = json.load(f)
|
||||||
|
return file_dict
|
||||||
|
Loading…
Reference in New Issue
Block a user