2018-11-11 08:19:04 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-06-24 10:10:55 -07:00
|
|
|
here=$(dirname "$0")
|
|
|
|
# shellcheck source=multinode-demo/common.sh
|
|
|
|
source "$here"/common.sh
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-08-31 00:10:39 -07:00
|
|
|
usage() {
|
|
|
|
if [[ -n $1 ]]; then
|
|
|
|
echo "$*"
|
|
|
|
echo
|
2018-07-13 23:37:56 -07:00
|
|
|
fi
|
2018-09-07 15:07:10 -07:00
|
|
|
echo "usage: $0 [extra args]"
|
2018-08-31 00:10:39 -07:00
|
|
|
echo
|
2018-09-07 15:07:10 -07:00
|
|
|
echo " Run bench-tps "
|
2018-08-31 00:10:39 -07:00
|
|
|
echo
|
2021-01-22 11:36:26 -08:00
|
|
|
echo " extra args: additional arguments are passed along to solana-bench-tps"
|
2018-08-31 00:10:39 -07:00
|
|
|
echo
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2023-04-15 21:13:47 -07:00
|
|
|
args=("$@")
|
|
|
|
default_arg --entrypoint "127.0.0.1:8001"
|
|
|
|
default_arg --faucet "127.0.0.1:9900"
|
|
|
|
default_arg --duration 90
|
2023-04-17 10:59:39 -07:00
|
|
|
default_arg --tx-count 50000
|
2023-04-15 21:13:47 -07:00
|
|
|
default_arg --thread-batch-sleep-ms 0
|
2018-12-06 13:00:56 -08:00
|
|
|
|
2023-04-15 21:13:47 -07:00
|
|
|
$solana_bench_tps "${args[@]}"
|