@ -421,7 +421,7 @@ int run_test() {
|
||||
if(!config.is_test_write()) {
|
||||
STORAGE_LOG(WARN, "no thread, cannot start write bench");
|
||||
} else {
|
||||
const int thread_no = config.get_total_partition_num();//one partiton one write thread
|
||||
const int thread_no = config.get_total_partition_num();//one partition one write thread
|
||||
MultiThreadWrite write(thread_no);
|
||||
if(OB_FAIL(write.init(schema_service, &restore_schema, config))){
|
||||
STORAGE_LOG(WARN, "fail to init query", K(ret));
|
||||
@ -459,8 +459,8 @@ int run_test() {
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
//multi thread single get speed test
|
||||
const int partiton_num = config.get_total_partition_num();
|
||||
const int thread_no = config.get_single_get_thread_count() * partiton_num;
|
||||
const int partition_num = config.get_total_partition_num();
|
||||
const int thread_no = config.get_single_get_thread_count() * partition_num;
|
||||
if(thread_no <= 0) {
|
||||
STORAGE_LOG(WARN, "no thread, cannot start single get bench");
|
||||
} else {
|
||||
@ -490,8 +490,8 @@ int run_test() {
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
//multi thread multi get speed test
|
||||
const int partiton_num = config.get_total_partition_num();
|
||||
int thread_no = config.get_multi_get_thread_count() * partiton_num;
|
||||
const int partition_num = config.get_total_partition_num();
|
||||
int thread_no = config.get_multi_get_thread_count() * partition_num;
|
||||
if(thread_no <= 0) {
|
||||
STORAGE_LOG(WARN, "no thread, cannot start multi get bench");
|
||||
} else {
|
||||
@ -521,8 +521,8 @@ int run_test() {
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
//multi thread scan speed test
|
||||
const int partiton_num = config.get_total_partition_num();
|
||||
int thread_no = config.get_scan_thread_count() * partiton_num;
|
||||
const int partition_num = config.get_total_partition_num();
|
||||
int thread_no = config.get_scan_thread_count() * partition_num;
|
||||
if(thread_no <= 0) {
|
||||
STORAGE_LOG(WARN, "no thread, cannot start scan speed bench");
|
||||
} else {
|
||||
|
@ -114,7 +114,7 @@ void MultiThreadSingleGet::run(obsys::CThread *thread, void *arg)
|
||||
int ret = OB_SUCCESS;
|
||||
ObStoragePerfRead read;
|
||||
read.assign_read_cols(read_cols_);
|
||||
// const int partiton_num = config_.get_total_partition_num();
|
||||
// const int partition_num = config_.get_total_partition_num();
|
||||
if(OB_FAIL(read.init(&config_, (int64_t)arg, &cache_suite_, restore_schema_,
|
||||
schema_service_, data_.get_partition_storage(), &barrier_))){
|
||||
STORAGE_LOG(WARN, "fail to init read", K(ret));
|
||||
@ -136,7 +136,7 @@ void MultiThreadMultiGet::run(obsys::CThread *thread, void *arg)
|
||||
|
||||
int ret = OB_SUCCESS;
|
||||
ObStoragePerfRead read;
|
||||
// const int partiton_num = config_.get_total_partition_num();
|
||||
// const int partition_num = config_.get_total_partition_num();
|
||||
read.assign_read_cols(this->read_cols_);
|
||||
if(OB_FAIL(read.init(&config_, (int64_t)arg, &cache_suite_, restore_schema_,
|
||||
schema_service_, data_.get_partition_storage(), &barrier_))){
|
||||
@ -158,7 +158,7 @@ void MultiThreadScan::run(obsys::CThread *thread, void *arg)
|
||||
{
|
||||
|
||||
int ret = OB_SUCCESS;
|
||||
//const int partiton_num = config_.get_total_partition_num();
|
||||
//const int partition_num = config_.get_total_partition_num();
|
||||
|
||||
ObStoragePerfRead read;
|
||||
read.assign_read_cols(this->read_cols_);
|
||||
|
@ -15,8 +15,8 @@ write_to_memtable_percent=0 #the ratio between size of data write to memtable wi
|
||||
|
||||
[read_parameter]
|
||||
single_get_thread_count=0 #each partition how many thread to do single get test, 0 mean not test single get
|
||||
multi_get_thread_count=0 #each partiton how many thread to do multi get test, 0 mean not test multi get
|
||||
scan_thread_count=1 #each partiton how many thread for scan test, 0 mean not test scan
|
||||
multi_get_thread_count=0 #each partition how many thread to do multi get test, 0 mean not test multi get
|
||||
scan_thread_count=1 #each partition how many thread for scan test, 0 mean not test scan
|
||||
total_single_row_count=1000 #every thread total get single row count
|
||||
single_get_times=1000
|
||||
total_multi_row_count=1000 #every thread total multi get row count
|
||||
|
Reference in New Issue
Block a user