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

Function _using_bytecode

Tools/importbench/importbench.py:150–160  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

148
149
150def _using_bytecode(module):
151 name = module.__name__
152 def using_bytecode_benchmark(seconds, repeat):
153 """Source w/ bytecode: {}"""
154 py_compile.compile(module.__file__)
155 yield from bench(name, lambda: sys.modules.pop(name), repeat=repeat,
156 seconds=seconds)
157
158 using_bytecode_benchmark.__doc__ = (
159 using_bytecode_benchmark.__doc__.format(name))
160 return using_bytecode_benchmark
161
162tabnanny_using_bytecode = _using_bytecode(tabnanny)
163decimal_using_bytecode = _using_bytecode(decimal)

Callers 1

importbench.pyFile · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…