Browse Source

更新 'benchmarks/db_bench.cc'

version_2^2
谢瑞阳 9 months ago
parent
commit
6bf460426c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      benchmarks/db_bench.cc

+ 3
- 3
benchmarks/db_bench.cc View File

@ -65,7 +65,7 @@ static const char* FLAGS_benchmarks =
"zstduncomp,";
// Number of key/values to place in database
static int FLAGS_num = 100000;
static int FLAGS_num = 1000000;
// Number of read operations to do. If negative, do FLAGS_num reads.
static int FLAGS_reads = -1;
@ -1127,8 +1127,8 @@ int main(int argc, char** argv) {
// Choose a location for the test database if none given with --db=<path>
if (FLAGS_db == nullptr) {
leveldb::g_env->GetTestDirectory(&default_db_path);
default_db_path += "/dbbench";
//leveldb::g_env->GetTestDirectory(&default_db_path);
default_db_path = "dbbench";
FLAGS_db = default_db_path.c_str();
}

Loading…
Cancel
Save