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