Weaken debug message (#6324)

Signed-off-by: fluorinedog <fluorinedog@gmail.com>
pull/6376/head
FluorineDog 2021-07-08 15:50:57 +08:00 committed by GitHub
parent 7d920e9c9c
commit d972a0361d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View File

@ -28,7 +28,6 @@ const auto schema = []() {
return schema;
}();
const auto plan = [] {
std::string dsl = R"({
"bool": {
@ -61,11 +60,11 @@ auto ph_group = [] {
static void
Search_SmallIndex(benchmark::State& state) {
// schema->AddDebugField("age", DataType::FLOAT);
static int64_t N = 1024 * 32;
const auto dataset_ = [] {
auto dataset_ = DataGen(schema, N);
return dataset_;
auto dataset_ = DataGen(schema, N);
return dataset_;
}();
auto is_small_index = state.range(0);
@ -96,8 +95,8 @@ Search_Sealed(benchmark::State& state) {
auto segment = CreateSealedSegment(schema);
static int64_t N = 1024 * 1024;
const auto dataset_ = [] {
auto dataset_ = DataGen(schema, N);
return dataset_;
auto dataset_ = DataGen(schema, N);
return dataset_;
}();
SealedLoader(dataset_, *segment);
auto choice = state.range(0);

View File

@ -44,8 +44,8 @@ EasyAssertInfo(bool value,
if (!extra_info.empty()) {
info += " => " + std::string(extra_info);
}
throw SegcoreError(error_code, info + "\n" + EasyStackTrace());
std::cout << info << std::endl;
throw SegcoreError(error_code, std::string(extra_info));
}
}