diff --git a/compare.sh b/compare.sh new file mode 100755 index 0000000..458576c --- /dev/null +++ b/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