Browse Source

Revert "Test higher difficulty benchmarks on Travis"

The Travis job times out

This reverts commit 5e19ce627a.
master
Luke Childs 5 years ago
parent
commit
b71c43acf6
  1. 26
      bench/index.js

26
bench/index.js

@ -9,50 +9,50 @@ const options = [
{
keyFormat: 'wif',
addressFormat: 'p2pkh',
prefix: 'Luke'
prefix: 'BTC'
},
{
keyFormat: 'wif',
addressFormat: 'p2wpkh-p2sh',
prefix: 'Luke'
prefix: 'BTC'
},
{
keyFormat: 'wif',
addressFormat: 'p2wpkh',
prefix: 'luke'
prefix: 'xyz'
},
{
keyFormat: 'bip39',
addressFormat: 'p2pkh',
prefix: 'Luke'
prefix: 'Hi'
},
{
keyFormat: 'bip39',
addressFormat: 'p2wpkh-p2sh',
prefix: 'Luke'
prefix: 'Hi'
},
{
keyFormat: 'bip39',
addressFormat: 'p2wpkh',
prefix: 'luke'
prefix: 'yz'
},
{
keyFormat: 'xpub',
xpub,
addressFormat: 'p2pkh',
prefix: 'Luke'
prefix: 'BTC'
},
{
keyFormat: 'xpub',
xpub,
addressFormat: 'p2wpkh-p2sh',
prefix: 'Luke'
prefix: 'BTC'
},
{
keyFormat: 'xpub',
xpub,
addressFormat: 'p2wpkh',
prefix: 'luke'
prefix: 'xyz'
},
{
keyFormat: 'multisig',
@ -63,7 +63,7 @@ const options = [
Buffer.from('030000000000000000000000000000000000000000000000000000000000000003', 'hex')
],
m: 2,
prefix: 'Luke'
prefix: 'BTC'
}
];
@ -75,16 +75,14 @@ options.forEach(options => {
const vain = new Vain(options);
if (!isCI) {
vain.on('update', data => {
if (isCI) {
process.stdout.write('.');
} else {
const duration = prettyMs(data.duration);
const attempts = data.attempts.toLocaleString();
const speed = `${data.addressesPerSecond.toLocaleString()} addr/s`;
console.log(`Duration: ${duration} | Attempts: ${attempts} | Speed: ${speed}`);
}
});
}
vain.on('found', data => {
console.log();

Loading…
Cancel
Save