From aa892b18eb839f92a26fcac3370ed8f5daccd542 Mon Sep 17 00:00:00 2001 From: wt Date: Thu, 4 Nov 2021 18:05:00 +0800 Subject: [PATCH] [skip ci] Add new func of benchmark (#11244) Signed-off-by: wangting0128 --- tests/benchmark/milvus_benchmark/utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/benchmark/milvus_benchmark/utils.py b/tests/benchmark/milvus_benchmark/utils.py index 465d1e30cd..1c4236b574 100644 --- a/tests/benchmark/milvus_benchmark/utils.py +++ b/tests/benchmark/milvus_benchmark/utils.py @@ -148,6 +148,15 @@ def get_server_tag(deploy_params): return server_tag +def dict_update(source, target): + for key, value in source.items(): + if isinstance(value, dict) and key in target: + dict_update(source[key], target[key]) + else: + target[key] = value + return target + + def search_param_analysis(vector_query, filter_query): """ Search parameter adjustment, applicable pymilvus version >= 2.0.0rc7.dev24 """