Skip to content

DERACHAIN/benchmarks

Repository files navigation

Benchmarks

The code benchmarking DERA chain, such as TPS, finality.

Prerequisites

Setup

  • Install dependencies
$ pip install -r requirement.txt

Smart contracts

Commands

  • 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

Run server

$ python main.py -a server --amount-native AMOUNT_NATIVE --amount-erc20 AMOUNT_ERC20

PROD run

  • Refer to supervisord for production config.

  • It is necessary to increase the file descriptors number before running the benchmarks scripts

$ ulimit -n 8192

About

Code for benchmarking the DERA chain, such as TPS, finality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published