Skip to content

UnitaNetwork/unita-benchmark-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:[email protected]:12581', 128, 2, 0.1).then()

// Run test
$ node bench.js 
start prepare
valid UTXO number: 1
generated UTXO number: 1
...

About

Tools for benchmarking Unita node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published