bitcoind-latency-benchmark

0.1.1 • Public • Published

Running test

index.js:

var blb = require('bitcoind-latency-benchmark');

var benchmark = blb.initBenchmark({ host: 'localhost', port: 8332, user: 'test', pass: 'test' });

benchmark.addTest({ method: 'getBlockCount', //bitcoind method frequency: 100 //milliseconds }).addTest({ method: 'getBlockTemplate', frequency: 1000 }).run();

You can run a latency benchmark by running these commands in shell:

The duration of benchmark can be set in shell:

```node index.js 10 - this benchmark will work 10 seconds

Readme

Keywords

none

Package Sidebar

Install

npm i bitcoind-latency-benchmark

Weekly Downloads

2

Version

0.1.1

License

none

Last publish

Collaborators

  • ilyich