0.1.12 • Published 4 years ago

muta-bench v0.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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

0.1.12

4 years ago

0.1.11-pr374.0

4 years ago

0.1.10-pr348.0

4 years ago

0.1.10

4 years ago

0.2.2

4 years ago

0.1.9

4 years ago

0.1.8

5 years ago

0.2.1

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago