solana/multinode-demo/client.sh

26 lines
512 B
Bash
Raw Normal View History

2018-09-10 21:34:12 -07:00
#!/bin/bash -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
usage() {
if [[ -n $1 ]]; then
echo "$*"
echo
2018-07-13 23:37:56 -07:00
fi
echo "usage: $0 [extra args]"
echo
echo " Run bench-tps "
echo
echo " extra args: additional arguments are pass along to solana-bench-tps"
echo
exit 1
}
if [[ -z $1 ]]; then # default behavior
$solana_bench_tps --identity config-private/client-id.json --network 127.0.0.1:8001 --duration 90
2018-09-13 10:04:54 -07:00
else
$solana_bench_tps "$@"
fi