From 3c858a6134be9ebd2fa6f73a476fa963d7759221 Mon Sep 17 00:00:00 2001 From: abbycin Date: Tue, 12 Aug 2025 17:21:43 +0800 Subject: [PATCH] use default options --- rocksdb/main.cpp | 6 ------ scripts/plot.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/rocksdb/main.cpp b/rocksdb/main.cpp index e31ee3d..e87f091 100644 --- a/rocksdb/main.cpp +++ b/rocksdb/main.cpp @@ -77,13 +77,7 @@ int main(int argc, char *argv[]) { } rocksdb::Options options; - options.disable_auto_compactions = true; options.create_if_missing = true; - options.max_write_buffer_number = 10; - options.target_file_size_base = 64 << 20; - options.write_buffer_size = 64 << 20; - options.level0_file_num_compaction_trigger = 500; - options.max_bytes_for_level_base = 2 << 30; auto ropt = rocksdb::ReadOptions(); auto wopt = rocksdb::WriteOptions(); std::vector wg; diff --git a/scripts/plot.py b/scripts/plot.py index 2a82a1f..7a63081 100644 --- a/scripts/plot.py +++ b/scripts/plot.py @@ -5,7 +5,7 @@ import sys def real_mode(m): if m == "mixed": - return "MIXED (70% Get, 30% Put)" + return "MIXED (70% Get, 30% Insert)" return m.upper() name = sys.argv[1]