Tools for benchmarking Unita node
- Prepare. Generate enough UTXOs for benchmarking.
- Send. Send prepared UTXOs to the node.
// 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:[email protected]:12581', 128, 2, 0.1).then()
// Run test
$ node bench.js
start prepare
valid UTXO number: 1
generated UTXO number: 1
...