sudo apt-get update && sudo apt-get install -y git automake autoconf libtool libsasl2-dev libssl-dev pkg-config emacs24-nox
|
|
# build cmake 3.5 -- but maybe apt-get install cmake works too
|
curl -LO https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
|
tar xzf cmake-3.5.2.tar.gz
|
cd cmake-3.5.2
|
./bootstrap
|
make -j8
|
sudo make install
|
cd ..
|
|
git clone https://github.com/mongodb/mongo-c-driver.git
|
cd mongo-c-driver
|
./autogen.sh && make -j8 && sudo make install
|
cd ..
|
|
curl -LO https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1404-3.2.5.tgz
|
tar xzf mongodb-linux-x86_64-ubuntu1404-3.2.5.tgz
|
mkdir data
|
./mongodb-linux-x86_64-ubuntu1404-3.2.5/bin/mongod --nojournal --logpath mongod.log --fork --dbpath data
|
|
git clone https://github.com/mongodb/mongo-c-driver-performance.git
|
cd mongo-c-driver-performance
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
make -j8
|
|
curl -LO https://www.dropbox.com/s/jpxpbq18r6mzg07/performance-testdata.tgz
|
tar xvf performance-testdata.tgz
|
rm *.tgz
|
find . -name '\._*' -exec rm {} ';' # damn Mac litter
|
|
screen # start a screen session, this will take a while
|
|
# ... in the screen session:
|
./mongo-c-performance performance-testdata
|