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
|
|
|
|
}
|
|
|
|
|
2018-09-13 17:58:33 -07:00
|
|
|
if [[ -z $1 ]]; then # default behavior
|
2018-12-06 13:00:56 -08:00
|
|
|
$solana_bench_tps \
|
2019-05-03 15:00:19 -07:00
|
|
|
--entrypoint 127.0.0.1:8001 \
|
2019-12-16 13:05:17 -08:00
|
|
|
--faucet 127.0.0.1:9900 \
|
2018-12-06 13:00:56 -08:00
|
|
|
--duration 90 \
|
|
|
|
--tx_count 50000 \
|
2019-10-15 20:53:37 -07:00
|
|
|
--thread-batch-sleep-ms 0 \
|
2018-12-06 13:00:56 -08:00
|
|
|
|
2018-09-13 10:04:54 -07:00
|
|
|
else
|
|
|
|
$solana_bench_tps "$@"
|
|
|
|
fi
|