mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix segcore benchmark (#18675)
Signed-off-by: Letian Jiang <letian.jiang@zilliz.com> Signed-off-by: Letian Jiang <letian.jiang@zilliz.com>
This commit is contained in:
parent
61f320287b
commit
c6d9d0df5e
@ -25,6 +25,8 @@ static int dim = 768;
|
||||
const auto schema = []() {
|
||||
auto schema = std::make_shared<Schema>();
|
||||
schema->AddDebugField("fakevec", DataType::VECTOR_FLOAT, dim, knowhere::metric::L2);
|
||||
auto i64_fid = schema->AddDebugField("age", DataType::INT64);
|
||||
schema->set_primary_field_id(i64_fid);
|
||||
return schema;
|
||||
}();
|
||||
|
||||
@ -40,7 +42,8 @@ const auto plan = [] {
|
||||
"nprobe": 10
|
||||
},
|
||||
"query": "$0",
|
||||
"topk": 5
|
||||
"topk": 5,
|
||||
"round_decimal": -1
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -109,6 +112,7 @@ Search_Sealed(benchmark::State& state) {
|
||||
info.index_params["index_type"] = "IVF";
|
||||
info.index_params["index_mode"] = "CPU";
|
||||
info.index_params["metric_type"] = knowhere::metric::L2;
|
||||
segment->DropFieldData(milvus::FieldId(100));
|
||||
segment->LoadIndex(info);
|
||||
}
|
||||
Timestamp time = 10000000;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user