Update benchmarks for isPublicKeyHashIn
This commit is contained in:
parent
7e23109f9b
commit
468f87d694
|
@ -27,14 +27,6 @@ async.series([
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPublicKeyHashIn() {
|
function isPublicKeyHashIn() {
|
||||||
if (c >= scripts.length) {
|
|
||||||
c = 0;
|
|
||||||
}
|
|
||||||
scripts[c].isPublicKeyHashIn(true);
|
|
||||||
c++;
|
|
||||||
}
|
|
||||||
|
|
||||||
function isPublicKeyHashInAccurate() {
|
|
||||||
if (c >= scripts.length) {
|
if (c >= scripts.length) {
|
||||||
c = 0;
|
c = 0;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +52,6 @@ async.series([
|
||||||
|
|
||||||
var suite = new benchmark.Suite();
|
var suite = new benchmark.Suite();
|
||||||
suite.add('isPublicKeyHashIn', isPublicKeyHashIn, {maxTime: maxTime});
|
suite.add('isPublicKeyHashIn', isPublicKeyHashIn, {maxTime: maxTime});
|
||||||
suite.add('isPublicKeyHashIn (accurate)', isPublicKeyHashInAccurate, {maxTime: maxTime});
|
|
||||||
suite.add('toAddress', toAddress, {maxTime: maxTime});
|
suite.add('toAddress', toAddress, {maxTime: maxTime});
|
||||||
suite.add('getAddressInfo', getAddressInfo, {maxTime: maxTime});
|
suite.add('getAddressInfo', getAddressInfo, {maxTime: maxTime});
|
||||||
suite
|
suite
|
||||||
|
|
Loading…
Reference in New Issue