Generate less intensive work.

This commit is contained in:
Vincent Driessen 2011-11-18 01:56:18 +01:00
parent a905961f94
commit 15c4efd2e1
1 changed files with 5 additions and 2 deletions

View File

@ -18,12 +18,15 @@ def main():
#funcs = filter(lambda s: not s.startswith('_'), dir(rq.dummy)) #funcs = filter(lambda s: not s.startswith('_'), dir(rq.dummy))
#print(funcs) #print(funcs)
queues = ('default', 'foo', 'bar', 'qux', 'high', 'normal', 'low') queues = ('default', 'high', 'normal', 'low')
sample_calls = [ sample_calls = [
(dummy.do_nothing, [], {}),
(dummy.do_nothing, [], {}),
(dummy.do_nothing, [], {}),
(dummy.do_nothing, [], {}),
(dummy.do_nothing, [], {}), (dummy.do_nothing, [], {}),
(dummy.sleep, [1], {}), (dummy.sleep, [1], {}),
(dummy.sleep, [2], {}),
] ]
for i in range(opts.count): for i in range(opts.count):