MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_multi_performance

Method test_multi_performance

python/python3/tornado/test/gen_test.py:144–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142 @skipOnTravis
143 @gen_test
144 def test_multi_performance(self):
145 # Yielding a list used to have quadratic performance; make
146 # sure a large list stays reasonable. On my laptop a list of
147 # 2000 used to take 1.8s, now it takes 0.12.
148 start = time.time()
149 yield [gen.moment for i in range(2000)]
150 end = time.time()
151 self.assertLess(end - start, 1.0)
152
153 @gen_test
154 def test_multi_empty(self):

Callers

nothing calls this directly

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected