Simplify using additional arguments in bench-tps.sh (#31210)
This commit is contained in:
parent
72ad275194
commit
ca0dce6eae
|
@ -19,14 +19,11 @@ usage() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -z $1 ]]; then # default behavior
|
args=("$@")
|
||||||
$solana_bench_tps \
|
default_arg --entrypoint "127.0.0.1:8001"
|
||||||
--entrypoint 127.0.0.1:8001 \
|
default_arg --faucet "127.0.0.1:9900"
|
||||||
--faucet 127.0.0.1:9900 \
|
default_arg --duration 90
|
||||||
--duration 90 \
|
default_arg --tx_count 50000
|
||||||
--tx_count 50000 \
|
default_arg --thread-batch-sleep-ms 0
|
||||||
--thread-batch-sleep-ms 0 \
|
|
||||||
|
|
||||||
else
|
$solana_bench_tps "${args[@]}"
|
||||||
$solana_bench_tps "$@"
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue