made test() a bit more friendly
This commit is contained in:
parent
4233cbbd2a
commit
e545c62267
|
@ -59,8 +59,13 @@ def run_tape(v, tape):
|
|||
return str(v)
|
||||
|
||||
|
||||
# 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):
|
||||
# This times the various parts of the hashing function - you can make the tape longer to make tape evaluation dominate
|
||||
#num_iterations is the number of tapes that are used
|
||||
#num_tape_evals is the number of nonces allowed, per tape
|
||||
#tape_w is the width of the tape
|
||||
#tape_d is the depth of the tape
|
||||
|
||||
def test(num_iterations = 10, num_tape_evals = 1000, tape_w = 100, tape_d = 1000):
|
||||
time_generating_tape = 0.
|
||||
time_generating_inputs = 0.
|
||||
time_evaluating_tape = 0.
|
||||
|
|
Loading…
Reference in New Issue