Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.08 KB

how-to-use-db_bench.md

File metadata and controls

43 lines (35 loc) · 1.08 KB

How to use db_bench

Pre-requisites

Linux - Ubuntu

  • Upgrade gcc version at least 4.8
  • gflags: sudo apt-get install libgflags-dev If this doesn't work, here's a nice tutorial: (http://askubuntu.com/questions/312173/installing-gflags-12-04)
  • snappy: sudo apt-get install libsnappy-dev
  • zlib: sudo apt-get install zlib1g-dev
  • bzip2: sudo apt-get install libbz2-dev

Other platform

Build and install

First, compile RocksDB. Details

$ git clone https://github.com/facebook/rocksdb
$ cd rocksdb
$ make
$ make check

I installed gflags using its github repository. Details

$ git clone https://github.com/gflags/gflags
$ cd gflags
$ mkdir build && cd build
$ ccmake ..
$ make

Then, go back to the rocksdb folder and run db_bench.

$ ./db_bench

You can see options of db_bench using below command.

$ ./db_bench --help