1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 12:08:59 +00:00

increase range for bip32 caching test

This commit is contained in:
Pavol Rusnak 2015-01-26 19:24:31 +01:00
parent 018a347aca
commit 1daf603135

View File

@ -4,6 +4,7 @@ import time
from trezorlib import tools from trezorlib import tools
class TestBip32Speed(common.TrezorTest): class TestBip32Speed(common.TrezorTest):
def test_public_ckd(self): def test_public_ckd(self):
self.setup_mnemonic_nopin_nopassphrase() self.setup_mnemonic_nopin_nopassphrase()
@ -34,12 +35,12 @@ class TestBip32Speed(common.TrezorTest):
self.setup_mnemonic_nopin_nopassphrase() self.setup_mnemonic_nopin_nopassphrase()
start = time.time() start = time.time()
for x in range(2): for x in range(10):
self.client.get_address('Bitcoin', [x, 2, 3, 4, 5, 6, 7, 8]) self.client.get_address('Bitcoin', [x, 2, 3, 4, 5, 6, 7, 8])
nocache_time = time.time() - start nocache_time = time.time() - start
start = time.time() start = time.time()
for x in range(2): for x in range(10):
self.client.get_address('Bitcoin', [1, 2, 3, 4, 5, 6, 7, x]) self.client.get_address('Bitcoin', [1, 2, 3, 4, 5, 6, 7, x])
cache_time = time.time() - start cache_time = time.time() - start