Permalink
Browse files

Add shell script to handle pre-run vacuum & truncate.

  • Loading branch information...
1 parent 295f43c commit b4a54372dcc04cb200e9ee92c7cbf6b04243d25b @mattdeboard committed Feb 9, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 compare.sh
View
@@ -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 b4a5437

Please sign in to comment.