Kill all!
This commit is contained in:
@@ -219,6 +219,7 @@ class TpoolLongTests(LimitedTestCase):
|
|||||||
pile.spawn(sender_loop,i)
|
pile.spawn(sender_loop,i)
|
||||||
results = list(pile)
|
results = list(pile)
|
||||||
self.assertEquals(len(results), 10)
|
self.assertEquals(len(results), 10)
|
||||||
|
tpool.killall()
|
||||||
|
|
||||||
@skipped
|
@skipped
|
||||||
def test_benchmark(self):
|
def test_benchmark(self):
|
||||||
@@ -240,7 +241,7 @@ from eventlet.tpool import execute
|
|||||||
tpool_overhead = (best_tpool-best_normal)/iterations
|
tpool_overhead = (best_tpool-best_normal)/iterations
|
||||||
print "%s iterations\nTpool overhead is %s seconds per call. Normal: %s; Tpool: %s" % (
|
print "%s iterations\nTpool overhead is %s seconds per call. Normal: %s; Tpool: %s" % (
|
||||||
iterations, tpool_overhead, best_normal, best_tpool)
|
iterations, tpool_overhead, best_normal, best_tpool)
|
||||||
|
tpool.killall()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user