-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmongod_bin_compare.sh
executable file
·24 lines (21 loc) · 1.01 KB
/
mongod_bin_compare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#how to use: execute with args being a sequence of paths to mongod binaries. The paths must be explicit/complete
#change rhost and rport variables to point at a running mongod that will store the results of the testing
#change mperfpath to point to the directory of mongo-perf (should contain runner.py and allow for creating and
#removing a dir called db)
MPERFPATH=/Users/ace/mongo-perf
RHOST="localhost"
RPORT="27099"
cd $MPERFPATH
echo $#
while [[ $# -gt 0 ]] ; do
echo $1
python $MPERFPATH/runner.py --rhost=$RHOST --rport=$RPORT -l $# --mongod=$1 -n 10
#NOTE this, be wary of losing your data!
rm -rf ./db
shift
done
#echo "Note: may need to remove the query on line 256 of server.py so it does not only find the most recent version one"
echo "Running server.py to see your results!"
echo "****Link: http://localhost:8080/results?start=&end=&limit=5&multidb=0 ****"
echo "Note: need to set MONGO_PERF_HOST to $RHOST and MONGO_PERF_PORT to $RPORT in server.py lines 26 and 27"
python $MPERFPATH/server.py