cpython/Tools/importbench
Miss Islington (bot) 51b533ec50
[3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743) (#105754)
gh-98040: Fix importbench: use types.ModuleType() (GH-105743)

Replace removed imp.new_module(name) with types.ModuleType(name).
(cherry picked from commit 457a459c78)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-06-13 22:59:02 +00:00
..
importbench.py [3.12] gh-98040: Fix importbench: use types.ModuleType() (GH-105743) (#105754) 2023-06-13 22:59:02 +00:00
README

Importbench is a set of micro-benchmarks for various import scenarios.

It should not be used as an overall benchmark of import performance, but rather
an easy way to measure impact of possible code changes. For a real-world
benchmark of import, use the normal_startup benchmark from
https://github.com/python/performance