From 5bf7c40a68642e964c9efae6ede6b42b42515a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=BA=BA=E9=B1=BC?= <1823748191@qq.com> Date: Mon, 9 Dec 2024 00:53:15 +0800 Subject: [PATCH] update benchmark --- 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 3aa5a57..f9e503e 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 = 1000000; +static int FLAGS_num = 100000; // 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(); }