MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_main_microseconds

Method test_main_microseconds

Lib/test/test_timeit.py:269–271  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 self.assertEqual(s, "50 loops, best of 5: 5.5 msec per loop\n")
268
269 def test_main_microseconds(self):
270 s = self.run_main(seconds_per_increment=0.0000025, switches=['-n100'])
271 self.assertEqual(s, "100 loops, best of 5: 2.5 usec per loop\n")
272
273 def test_main_fixed_iters(self):
274 s = self.run_main(seconds_per_increment=2.0, switches=['-n35'])

Callers

nothing calls this directly

Calls 2

run_mainMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected