我要评分
获取效率
正确性
完整性
易理解

readwhilemerging

  1. Go to the directory where the tool is stored.
    1
    cd /home/rocksdb-6.10.2
    
  2. Run the following command to perform the performance test.
    1
    ./db_bench --benchmarks="readwhilemerging,stats" --merge_operator=put
    

    In the command output, Entries shows the data volume, Compression shows the compression type, Memtablerep shows the memory table type, DB path shows the database path, readwhilemerging shows the performance data.

    In this scenario, the --merge_operator parameter needs to be added. The following figure shows the values of this parameter. For details, see the parameter description in the help information of db_bench.