readrandom
- Go to the directory where the tool is stored.
cd /home/rocksdb-6.10.2
- Create a database and populate the database.
./db_bench --benchmarks="fillseq,stats"
- Randomly read data from the existing database.
./db_bench --benchmarks="readrandom,stats" --use_existing_db=true \ --use_existing_keys=true

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, readrandom shows the performance data.
Parent topic: Benchmark Test Scenarios