Skip to content

WiredTiger Build

Michael Cahill edited this page Dec 16, 2013 · 1 revision

To build the RocksDB (LevelDB) benchmark for WiredTiger, use the following steps:

$ cd work
$ git clone https://github.com/wiredtiger/rocksdb.git rocksdb_wt -b wiredtiger
$ git clone https://github.com/wiredtiger/wiredtiger.git -b develop
$ cd wiredtiger/build_posix
$ sh reconf && ../configure --enable-snappy && make -j 12
$ export WT_HOME=`pwd`
$ export LD_LIBRARY_PATH=$WT_HOME/.libs:$WT_HOME/ext/compressors/snappy/.libs:$LD_LIBRARY_PATH
$ cd ../../rocksdb_wt
$ echo "Edit the Makefile to ensure we are doing a release build"
$ make -j 12
$ env LDFLAGS="-L$WT_HOME/.libs" CXXFLAGS="-I$WT_HOME" make db_bench_wiredtiger db_bench

NOTE: It is important that the RocksDB repository is checked out to branch wiredtiger and the WiredTiger repository is checked out to branch develop.

The source code for the WiredTiger benchmark implementation is in doc/bench/db_bench_wiredtiger.cc.

If you want to run benchmarks there are some scripts in the runners/ directory of the repository that are a good starting point.