The code benchmarking DERA chain, such as TPS, finality.
- Install dependencies
$ pip install -r requirement.txt
- Please refer to Smart Contracts for more details.
- Generate wallets
$ python main.py -a generate_wallets -n WALLET_NUMBER
- Fund wallets
$ python main.py -a bootstrap -t TOKEN_TYPE -b INITIAL_BALANCE
Note: TOKEN_TYPE can be native
or erc20
- Transfer actions
$ python main.py -a transfer -n WALLET_NUMBER
$ python main.py -a server --amount-native AMOUNT_NATIVE --amount-erc20 AMOUNT_ERC20
-
Refer to supervisord for production config.
-
It is necessary to increase the file descriptors number before running the benchmarks scripts
$ ulimit -n 8192