MCPcopy Index your code
hub / github.com/python/cpython / run_perf

Method run_perf

Lib/test/test_patma.py:3546–3555  ·  view source on GitHub ↗
(self, count)

Source from the content-addressed store, hash-verified

3544 assert False, "this test should be a method of a different class!"
3545
3546 def run_perf(self, count):
3547 tests = []
3548 for attr in vars(TestPatma):
3549 if attr.startswith("test_"):
3550 tests.append(getattr(self, attr))
3551 tests *= count
3552 start = pyperf.perf_counter()
3553 for test in tests:
3554 test()
3555 return pyperf.perf_counter() - start
3556
3557
3558 runner = pyperf.Runner()

Callers

nothing calls this directly

Calls 3

testFunction · 0.90
startswithMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected