Rename client.sh to bench-tps.sh (#6014)
This commit is contained in:
31
multinode-demo/bench-tps.sh
Executable file
31
multinode-demo/bench-tps.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
here=$(dirname "$0")
|
||||
# shellcheck source=multinode-demo/common.sh
|
||||
source "$here"/common.sh
|
||||
|
||||
usage() {
|
||||
if [[ -n $1 ]]; then
|
||||
echo "$*"
|
||||
echo
|
||||
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 \
|
||||
--entrypoint 127.0.0.1:8001 \
|
||||
--drone 127.0.0.1:9900 \
|
||||
--duration 90 \
|
||||
--tx_count 50000 \
|
||||
|
||||
else
|
||||
$solana_bench_tps "$@"
|
||||
fi
|
Reference in New Issue
Block a user