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. 30
      bench/index.js

30
bench/index.js

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

Loading…
Cancel
Save