-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support for storage layer benchmark #6506
Conversation
trans benchmark_tool to unit test fix eof remove unused code and file add SegmentWrite&& support multi benchmark test add PageEncodeBenchmark remove time count at first turn run && move some util fuction to test_util&& add benchmark name display add MultiBenchmark to manage benchmarks add SegmentWriteByFileBenchmark add SegmentScanByFileBenchmark add ignore case compare add benchmark include build promote usage
|
||
auto* dest_slice = (Slice*)target; | ||
dest_slice->size = src_len; | ||
dest_slice->data = (char*)pool->allocate(src_len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add String type
be/test/olap/tablet_schema_helper.h
Outdated
void set_column_value_by_type(FieldType fieldType, std::string src, char* target, MemPool* pool, | ||
size_t _length = 0) { | ||
if (fieldType == OLAP_FIELD_TYPE_CHAR) { | ||
char* src_value = &src[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use src.data() or use src.copy() at line 135
be/test/olap/tablet_schema_helper.h
Outdated
@@ -123,4 +123,28 @@ void set_column_value_by_type(FieldType fieldType, int src, char* target, MemPoo | |||
} | |||
} | |||
|
|||
void set_column_value_by_type(FieldType fieldType, std::string src, char* target, MemPool* pool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void set_column_value_by_type(FieldType fieldType, std::string src, char* target, MemPool* pool, | |
void set_column_value_by_type(FieldType fieldType, const std::string& src, char* target, MemPool* pool, |
be/test/test_util/test_util.cpp
Outdated
@@ -74,4 +73,42 @@ void InitConfig() { | |||
} | |||
} | |||
|
|||
std::vector<std::string> split_str(const std::string& str, char separation) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use strings::Split
thirdparty/build-thirdparty.sh
Outdated
sed -i '160 i \ \ add_cxx_compiler_flag(-lrt)' ./CMakeLists.txt | ||
|
||
cmake -E make_directory "build" | ||
cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ | |
CXXFLAGS="-lresolv -pthread -lrt" cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ |
thirdparty/build-thirdparty.sh
Outdated
|
||
sed -i '160 i \ \ add_cxx_compiler_flag(-lresolv)' ./CMakeLists.txt | ||
sed -i '160 i \ \ add_cxx_compiler_flag(-pthread)' ./CMakeLists.txt | ||
sed -i '160 i \ \ add_cxx_compiler_flag(-lrt)' ./CMakeLists.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove those sed
@yangzhg I do some change to fix those problems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
Proposed changes
like here #6505
Types of changes
What types of changes does your code introduce to Doris?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...