Skip to content

Commit

Permalink
Add shell script to handle pre-run vacuum & truncate.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdeboard committed Feb 9, 2014
1 parent 09b6e5c commit 9f76e44
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compare.sh
@@ -0,0 +1,7 @@
#!/bin/sh
RUNS=${1-10000}
PORT=${2-3000}

sudo -u postgres psql event -c "truncate eventlog"
sudo -u postgres psql event -c "vacuum analyze eventlog"
ab -n $RUNS -c 50 -T application/x-www-form-urlencoded -p benchmark/sample_post_data.txt -k http://localhost:$PORT/capture

0 comments on commit 9f76e44

Please sign in to comment.