mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
pyfec: add variant of randomized test which happens to match the interface to benchutil
This commit is contained in:
parent
367faeef6a
commit
18de69456c
@ -91,6 +91,12 @@ def _test_random():
|
||||
ss = [ randstr(l/k) for x in range(k) ]
|
||||
_h(k, m, ss)
|
||||
|
||||
def _test_random_with_l(l):
|
||||
m = 83
|
||||
k = 19
|
||||
ss = [ randstr(l/k) for x in range(k) ]
|
||||
_h(k, m, ss)
|
||||
|
||||
def test_random(noisy=True):
|
||||
for i in range(2**5):
|
||||
# sys.stdout.write(",")
|
||||
|
Loading…
Reference in New Issue
Block a user