Skip to content

Commit

Permalink
fix in run.sh - initial sleep should not be a part of the execution loop
Browse files Browse the repository at this point in the history
  • Loading branch information
iizotov committed Dec 5, 2018
1 parent e100d98 commit ac9d802
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ var_expand() {
eval printf '%s' "\"\${$1?}\""
}

echo "Sleeping for $INITIAL_SLEEP seconds"
[ "$INITIAL_SLEEP" ] && /bin/sleep $INITIAL_SLEEP

for ((i=1;i<=$NUM_ITERATIONS;i++))
do
[ "$INITIAL_SLEEP" ] && /bin/sleep $INITIAL_SLEEP

dotnet loadgenerator.dll -c "$(var_expand CONNECTION_STRING_$i)" -b $(var_expand BATCH_$i) \
-t $(var_expand THROUGHPUT_$i) --terminate-after $(var_expand TERMINATE_AFTER_$i) \
-j -s $(var_expand SIZE_$i) --service $(var_expand SERVICE_$i)
done
done

0 comments on commit ac9d802

Please sign in to comment.