MCPcopy Index your code
hub / github.com/python/cpython / importbench.py

File importbench.py

Tools/importbench/importbench.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Benchmark some basic import use-cases.
2
3The assumption is made that this benchmark is run in a fresh interpreter and
4thus has no external changes made to import-related attributes in sys.

Callers

nothing calls this directly

Calls 6

_wo_bytecodeFunction · 0.85
_writing_bytecodeFunction · 0.85
_using_bytecodeFunction · 0.85
mainFunction · 0.70
add_argumentMethod · 0.45
parse_argsMethod · 0.45

Tested by

no test coverage detected