Code Monkey home page Code Monkey logo

muta-benchmark's Introduction

Muta benchmark

Requirement

  • NodeJS >= 10

Quick start

git clone https://github.com/nervosnetwork/muta-benchmark.git
cd muta-benchmark
npm install
node index -d 5 http://127.0.0.1:8000/graphql

or install globally

git clone https://github.com/nervosnetwork/muta-benchmark.git
cd muta-benchmark
npm install
[sudo] npm link
muta-bench -d 5 http://127.0.0.1:8000/graphql

Options

Options:
  -m --method [method]            HTTP method (default: "POST")
  -d --duration [duration]        number of second (default: 5)
  -g --gap [gap]                  muta's timeout_gap (default: 20)
  -c --connections [connections]  number of connection (default: 20)
  --pk [privateKey]               sender of the transfer
  --receiver [receiver]           receiver of the transfer
  --verbose                       show verbose info, use it for debug (default: false)
  -h, --help                      output usage information

Q&A

What can I do when unknown error appeared?

Try to use --verbose for more bench information

How to customize private key of the sender?

  • use environment variable PRIVATE_KEY=0x...
  • or use --pk 0x... option

How to run with multiple nodes

# each node will be allocated 15 connections
muta-bench -c 30 http://127.0.0.1:8000/graphql http://127.0.0.1:8001/graphql

It is recommended to adjust the number of connections to n times the number of nodes

muta-benchmark's People

Contributors

dependabot[bot] avatar homura avatar mohanson avatar yejiayu 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.