Stress test and measure the performance of an Arthera network.
Just run make to create the build/txgen binary.
Instructions for running:
- Generate some fake accounts. This will create a folder called
keys_txgenthat will have the private keys of the generated fake accounts:
./build/txgen fakeaccs- Update the
txgen.tomlconfig file with:ChainId- the chain id of the Arthera chain you want to connect toPayer- the address of the Arthera account that will pay for the transactionsURLs- a list of WebSocket urls to connect to
- Import the payer key from your node data dir to the local folder keys_txgen:
./build/txgen importacc 0x0c08A529D58152A01d20b46B28DEEB7a4075104A ~/.arthera/keystore "fakepassword"- Init fake account balances with funds from the payer account:
./build/txgen initbalance- Run the transfer TPS test:
./build/txgen transfers- Run the contract calls TPS test:
./build/txgen callsThe tool will print the average TPS while running, and it will run indefinitely until you stop it with Ctrl+C.