From f9e1cd5d24670923351925cf0dc52a19f0208a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E7=91=9E=E9=98=B3?= <10225101483@stu.ecnu.edu.cn> Date: Mon, 9 Dec 2024 01:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'benchmarks/db=5Fbench.cc'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- benchmarks/db_bench.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/db_bench.cc b/benchmarks/db_bench.cc index 584b253..a2e9d1d 100644 --- a/benchmarks/db_bench.cc +++ b/benchmarks/db_bench.cc @@ -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= 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(); }