Obtaining the RocksDB Source Package and Generating the Test Tool
- Go to the /home directory.
cd /home
- Obtain the software source package and rename the package.
wget https://github.com/facebook/rocksdb/archive/refs/tags/v6.10.2.tar.gz
mv v6.10.2.tar.gz rocksdb-6.10.2.tar.gz
- Decompress the software package.
tar -zxvf rocksdb-6.10.2.tar.gz
- Go to the source package directory.
cd rocksdb-6.10.2
- Compile and generate the tool.
make release -j `nproc`
The executable file generated by running the make db_bench -j `nproc` command is in debug mode. When the tool is running, assertions in this mode are triggered, affecting the test performance. Therefore, the make release -j `nproc` command is used. If compilation has been performed, run the make clean command and then perform compilation again.
If the following compilation result is obtained, the compilation is successful.

- Verify the tool.
./db_bench --help

Parent topic: Test Information