|
|
@ -11,7 +11,7 @@ using namespace leveldb; |
|
|
|
// Number of key/values to operate in database
|
|
|
|
constexpr int num_ = 100000; |
|
|
|
// Size of each value
|
|
|
|
constexpr int value_size_ = 1000; |
|
|
|
constexpr int value_size_ = 2000; |
|
|
|
// Number of read operations
|
|
|
|
constexpr int reads_ = 100000; |
|
|
|
// Number of findkeysbyfield operations
|
|
|
@ -42,7 +42,7 @@ void InsertData(DB *db, std::vector &lats) { |
|
|
|
int key_ = rand() % num_+1; |
|
|
|
int value_ = std::rand() % (num_ + 1); |
|
|
|
int value_size = value_range(value_seed); |
|
|
|
std::string value(value_size, 'a'); |
|
|
|
std::string value(value_size_, 'a'); |
|
|
|
std::string key = std::to_string(key_); |
|
|
|
FieldArray field_array = { |
|
|
|
{"1", value}, |
|
|
|