mirror of
https://github.com/status-im/research.git
synced 2025-02-04 19:23:54 +00:00
Comment + index fix in test()
This commit is contained in:
parent
82a17a9db4
commit
e3d2db579d
@ -61,7 +61,7 @@ def run_tape(v, tape):
|
||||
def sha_cap(s):
|
||||
return u.sha3(s)
|
||||
|
||||
|
||||
# This times the various parts of the hashing function - make the tape longer to make tape evaluation dominate
|
||||
def test(num_iterations, num_tape_evals, tape_w = 100, tape_d = 1000):
|
||||
time_generating_tape = 0.
|
||||
time_generating_inputs = 0.
|
||||
@ -72,9 +72,9 @@ def test(num_iterations, num_tape_evals, tape_w = 100, tape_d = 1000):
|
||||
tape = gen_tape(str(i), tape_w, tape_d)
|
||||
time_generating_tape += time.time() - t
|
||||
|
||||
for i in xrange(num_tape_evals):
|
||||
for j in xrange(num_tape_evals):
|
||||
t = time.time()
|
||||
v = gen_inputs(str(i), tape_w)
|
||||
v = gen_inputs(str(j), tape_w)
|
||||
time_generating_inputs += time.time() - t
|
||||
|
||||
t = time.time()
|
||||
|
Loading…
x
Reference in New Issue
Block a user