Skip to content

Instantly share code, notes, and snippets.

@bcarpio
Created June 27, 2012 22:37
Show Gist options
  • Save bcarpio/3007346 to your computer and use it in GitHub Desktop.
Save bcarpio/3007346 to your computer and use it in GitHub Desktop.
mongo-perf
@task
def mongo_perf():
sudo('apt-get install -y tcsh git-core scons g++ libpcre++-dev libboost-dev libreadline-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-date-time-dev python-pip build-essential python-dev')
with cd('/var/tmp'):
sudo('wget http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-v2.0-latest.tgz')
sudo('tar zxvf mongodb-linux-x86_64-v2.0-latest.tgz')
with cd('/var/tmp/mongo-cxx-driver-v2.0'):
sudo('scons')
sudo('scons install')
sudo('git clone https://github.com/mongodb/mongo-perf.git')
with cd('/var/tmp/mongo-perf'):
sudo('scons benchmark')
sudo('pip install pymongo==1.8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment