mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
[skip ci] Update codes of benchmark (#11016)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
parent
556277616b
commit
bb064e243f
@ -265,6 +265,13 @@ class AccAccuracyRunner(AccuracyRunner):
|
||||
true_ids = case_param["true_ids"]
|
||||
nq = case_metric.search["nq"]
|
||||
top_k = case_metric.search["topk"]
|
||||
start_time = time.time()
|
||||
end_time = start_time + 500
|
||||
cnt = 0
|
||||
while cnt < 100 and start_time < end_time:
|
||||
self.milvus.query(case_param["vector_query"], filter_query=case_param["filter_query"])
|
||||
cnt += 1
|
||||
start_time = time.time()
|
||||
query_res = self.milvus.query(case_param["vector_query"], filter_query=case_param["filter_query"])
|
||||
result_ids = self.milvus.get_ids(query_res)
|
||||
# Calculate the accuracy of the result of query
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user