Add bench-exchange support to the net framework (#3893)
This commit is contained in:
@ -7,7 +7,8 @@ echo "$(date) | $0 $*" > client.log
|
||||
|
||||
deployMethod="$1"
|
||||
entrypointIp="$2"
|
||||
RUST_LOG="$3"
|
||||
clientToRun="$3"
|
||||
RUST_LOG="$4"
|
||||
export RUST_LOG=${RUST_LOG:-solana=info} # if RUST_LOG is unset, default to info
|
||||
|
||||
missing() {
|
||||
@ -36,7 +37,6 @@ local|tar)
|
||||
source ./target/perf-libs/env.sh
|
||||
|
||||
net/scripts/rsync-retry.sh -vPrc "$entrypointIp:~/.cargo/bin/solana*" ~/.cargo/bin/
|
||||
solana_bench_tps=solana-bench-tps
|
||||
;;
|
||||
*)
|
||||
echo "Unknown deployment method: $deployMethod"
|
||||
@ -50,16 +50,31 @@ scripts/net-stats.sh > net-stats.log 2>&1 &
|
||||
|
||||
! tmux list-sessions || tmux kill-session
|
||||
|
||||
clientCommand="\
|
||||
$solana_bench_tps \
|
||||
--network $entrypointIp:8001 \
|
||||
--drone $entrypointIp:9900 \
|
||||
--duration 7500 \
|
||||
--sustained \
|
||||
--threads $threadCount \
|
||||
"
|
||||
case $clientToRun in
|
||||
solana-bench-tps)
|
||||
clientCommand="\
|
||||
solana-bench-tps \
|
||||
--network $entrypointIp:8001 \
|
||||
--drone $entrypointIp:9900 \
|
||||
--duration 7500 \
|
||||
--sustained \
|
||||
--threads $threadCount \
|
||||
"
|
||||
;;
|
||||
solana-bench-exchange)
|
||||
clientCommand="\
|
||||
solana-bench-exchange \
|
||||
--network $entrypointIp:8001 \
|
||||
--drone $entrypointIp:9900 \
|
||||
--threads $threadCount \
|
||||
"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown client name: $clientToRun"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
tmux new -s solana-bench-tps -d "
|
||||
tmux new -s "$clientToRun" -d "
|
||||
while true; do
|
||||
echo === Client start: \$(date) | tee -a client.log
|
||||
$metricsWriteDatapoint 'testnet-deploy client-begin=1'
|
||||
@ -69,4 +84,4 @@ tmux new -s solana-bench-tps -d "
|
||||
done
|
||||
"
|
||||
sleep 1
|
||||
tmux capture-pane -t solana-bench-tps -p -S -100
|
||||
tmux capture-pane -t "$clientToRun" -p -S -100
|
||||
|
Reference in New Issue
Block a user