We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6038c3 commit 1a209e7Copy full SHA for 1a209e7
1 file changed
exercises.py
@@ -43,3 +43,16 @@ def entrypoint_regexp_perf():
43
input = '0' + ' ' * 2**10 + '0' # end warmup
44
45
re.match(importlib_metadata.EntryPoint.pattern, input)
46
+
47
48
+def import_time_perf():
49
+ "import time"
50
+ import sys
51
+ import importlib
52
53
+ saved = dict(sys.modules)
54
55
+ # end warmup
56
+ sys.modules.clear()
57
+ sys.modules.update(saved)
58
+ import importlib_metadata
0 commit comments