diff --git a/run-tests b/run-tests index 0df6f04..df59cab 100755 --- a/run-tests +++ b/run-tests @@ -99,7 +99,7 @@ run_gotest "github.com/snower/slock/client" echo "Run Benchmark" echo -BENCH_CMD="go run tools/benchmark/main.go --client=4 --conc=16 --count=300000" +BENCH_CMD="go run tools/benchmark/main.go --port=5659 --client=4 --conc=16 --count=300000" BENCH_OUTPUTS=$(which timeout > /dev/null 2>&1 && timeout 120 $BENCH_CMD 2>&1 || $BENCH_CMD 2>&1) BENCH_SUCCEDS=$(echo "$BENCH_OUTPUTS" | grep "Succed") if [ -z "$BENCH_SUCCEDS" ] @@ -118,7 +118,7 @@ Benchmark Multi Key Single Lock Info: $BENCH_OUTPUTS " -BENCH_CMD="go run tools/benchmark/main.go --key=1 --client=4 --conc=16 --count=100000" +BENCH_CMD="go run tools/benchmark/main.go --port=5659 --key=1 --client=4 --conc=16 --count=100000" BENCH_OUTPUTS=$(which timeout > /dev/null 2>&1 && timeout 120 $BENCH_CMD 2>&1 || $BENCH_CMD 2>&1) BENCH_SUCCEDS=$(echo "$BENCH_OUTPUTS" | grep "Succed") if [ -z "$BENCH_SUCCEDS" ] @@ -137,7 +137,7 @@ Benchmark Single Key Multi Lock Info: $BENCH_OUTPUTS " -BENCH_CMD="go run tools/benchmark/main.go --client=4 --conc=16 --count=200000 --timeout_flag=4096" +BENCH_CMD="go run tools/benchmark/main.go --client=4 --conc=8 --count=10000 --timeout_flag=4096" BENCH_OUTPUTS=$(which timeout > /dev/null 2>&1 && timeout 120 $BENCH_CMD 2>&1 || $BENCH_CMD 2>&1) BENCH_SUCCEDS=$(echo "$BENCH_OUTPUTS" | grep "Succed") if [ -z "$BENCH_SUCCEDS" ] @@ -175,7 +175,7 @@ Benchmark Multi Key Single Lock With Data Info: $BENCH_OUTPUTS " -BENCH_CMD="go run tools/benchmark/main.go --client=4 --conc=16 --count=100000 --timeout_flag=4096 --data_length=4096" +BENCH_CMD="go run tools/benchmark/main.go --client=4 --conc=8 --count=10000 --timeout_flag=4096 --data_length=4096" BENCH_OUTPUTS=$(which timeout > /dev/null 2>&1 && timeout 120 $BENCH_CMD 2>&1 || $BENCH_CMD 2>&1) BENCH_SUCCEDS=$(echo "$BENCH_OUTPUTS" | grep "Succed") if [ -z "$BENCH_SUCCEDS" ] @@ -236,7 +236,7 @@ ps -ef | grep benchmark | grep -v grep | awk '{print $2}' | xargs kill -HUP > /d sleep 2 echo "Slock Log:" -cat $LOG_FILENAME | grep -v protocol | grep -v connection +cat $LOG_FILENAME | grep -v protocol | grep -v connection | grep "Transparency client" echo exit 0 \ No newline at end of file