Skip to content

Commit

Permalink
update CI run-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snower committed Apr 25, 2024
1 parent a34f867 commit 707f9a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -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" ]
Expand All @@ -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" ]
Expand Down Expand Up @@ -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" ]
Expand Down Expand Up @@ -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

0 comments on commit 707f9a6

Please sign in to comment.