Simplify using additional arguments in bench-tps.sh (#31210)

This commit is contained in:
Andrew Fitzgerald 2023-04-15 21:13:47 -07:00 committed by GitHub
parent 72ad275194
commit ca0dce6eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 10 deletions

View File

@ -19,14 +19,11 @@ usage() {
exit 1
}
if [[ -z $1 ]]; then # default behavior
$solana_bench_tps \
--entrypoint 127.0.0.1:8001 \
--faucet 127.0.0.1:9900 \
--duration 90 \
--tx_count 50000 \
--thread-batch-sleep-ms 0 \
args=("$@")
default_arg --entrypoint "127.0.0.1:8001"
default_arg --faucet "127.0.0.1:9900"
default_arg --duration 90
default_arg --tx_count 50000
default_arg --thread-batch-sleep-ms 0
else
$solana_bench_tps "$@"
fi
$solana_bench_tps "${args[@]}"