Files
evm/scripts/run_simulator.sh
AnushaandGitHub e60565d5d8 Improve TPS on E2E Load Test (#947)
* init

* make fee changes

* change simulator settings

* Correct numbers

* correct header

* correct
2023-10-18 14:56:06 +00:00

45 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# This script runs a 30s load simulation using RPC_ENDPOINTS environment variable to specify
# which RPC endpoints to hit.
set -e
echo "Beginning simulator script"
if ! [[ "$0" =~ scripts/run_simulator.sh ]]; then
echo "must be run from repository root, but got $0"
exit 255
fi
# Load the versions
SUBNET_EVM_PATH=$(
cd "$(dirname "${BASH_SOURCE[0]}")"
cd .. && pwd
)
source "$SUBNET_EVM_PATH"/scripts/versions.sh
# Load the constants
source "$SUBNET_EVM_PATH"/scripts/constants.sh
run_simulator() {
#################################
echo "building simulator"
pushd ./cmd/simulator
go build -o ./simulator main/*.go
echo
popd
echo "running simulator from $PWD"
./cmd/simulator/simulator \
--endpoints=$RPC_ENDPOINTS \
--key-dir=./cmd/simulator/.simulator/keys \
--timeout=300s \
--workers=1 \
--txs-per-worker=50000 \
--batch-size=50000 \
--max-fee-cap=1000000 \
--max-tip-cap=10000
}
run_simulator