3 Benchmarks for L{twisted.internet.task}.
6 from timer import timeit
8 from twisted.internet import task
10 def test_performance():
12 L{LoopingCall} should not take long to skip a lot of iterations.
15 call = task.LoopingCall(lambda: None)
19 clock.advance(1000000)
23 print "LoopingCall large advance takes", timeit(test_performance, iter=1)
25 if __name__ == '__main__':