Skip to content
Tools for benchmarking Unita node
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc/img
LICENSE
README.md
bench.js
list.js
package.json

README.md

unita-benchmark

Tools for benchmarking Unita node

How it works

image There are 2 stages:

  1. Prepare. Generate enough UTXOs for benchmarking.
  2. Send. Send prepared UTXOs to the node.

How to use

// Download the code and install dependencies
$ git clone https://github.com/UnitaNetwork/unita-benchmark-script.git
$ cd unita-benchmark-script
$ npm install

/**
 * Configuration in bench.js
 * rpcurl
 * number of UTXO to prepare
 * how many UTXOs to split one UTXO into
 * gas per transaction
 */
run('http://test:test@127.0.0.1:12581', 128, 2, 0.1).then()

// Run test
$ node bench.js 
start prepare
valid UTXO number: 1
generated UTXO number: 1
...
You can’t perform that action at this time.