Giter Site home page Giter Site logo

network-tank's Introduction

network-tank

Install

  1. Create virtual environment
pdm install
# or manually
virtualenv -p python3 .venv
  1. Activate it and install nekoton (feature/get_blockchain_config branch)
source .venv/bin/activate
pdm add ${PATH_TO_LOCAL_NEKOTON_BUILD}
# OR
pip install ${PATH_TO_LOCAL_NEKOTON_BUILD}

Config

  1. Crete .toml config from template and fill it with your data
cp config.toml.template config.toml
  1. Generate keypairs (optional, if you want to use keys file)
# n - number of accounts to generate
python gen_keys.py -n 100 --seed "${YOUR_SEED_PHRASE}"
  1. Fund accounts with evers
python fund.py

Run

Test case 1

Create N parallel flows (N = number of accounts). Every flow sends tx by tx synchronously after former tx is confirmed. Tx is a simple value transfer to another account.

python strat-1.py

Test case 2

Every M seconds send batch of N messages asynchronously. Batches are independent and don't wait for each other, so that account could be used for sending new message before previous one is confirmed. Generates more load than strat-1. Tx is a simple value transfer to another account.

python strat-2.py

Test case 3

Version of strat-2 that uses multiple processes if 1 CPU core is not enough.

python strat-3.py

network-tank's People

Contributors

30mb1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.