[skip ci] Add new func on benchmark (#10568)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-10-25 19:32:24 +08:00 committed by GitHub
parent 5f4348ec2a
commit 2ab7891102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import time
import logging
import string
import random
import json
from yaml.representer import SafeRepresenter
# from yaml import full_load, dump
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))
return result
def read_json_file(file_name):
with open(file_name) as f:
file_dict = json.load(f)
return file_dict