benchmarks.
This commit is contained in:
parent
84b94fd1b5
commit
5e52c7f373
@ -60,6 +60,22 @@ function runBench(callback) {
|
||||
next();
|
||||
});
|
||||
},
|
||||
function(next) {
|
||||
var end = bench('addrs');
|
||||
utils.forRange(0, 1000, function(i, next) {
|
||||
utils.forRange(0, 10, function(j, next) {
|
||||
wallet.createReceive(i, function(err, addr) {
|
||||
assert.ifError(err);
|
||||
addrs.push(addr);
|
||||
next();
|
||||
});
|
||||
}, next);
|
||||
}, function(err) {
|
||||
assert.ifError(err);
|
||||
end(1000 * 10);
|
||||
next();
|
||||
});
|
||||
},
|
||||
function(next) {
|
||||
var nonce = new bn(0);
|
||||
var end;
|
||||
|
||||
@ -568,6 +568,7 @@ Wallet.prototype.createChange = function createChange(account, callback) {
|
||||
*/
|
||||
|
||||
Wallet.prototype.createAddress = function createAddress(account, change, callback) {
|
||||
var self = this;
|
||||
var unlock;
|
||||
|
||||
if (typeof change === 'function') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user