Skip to content

Commit a77d0d1

Browse files
committed
Add performance test for Prepared.normalize.
1 parent 1b0be12 commit a77d0d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exercises.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@ def entrypoint_regexp_perf():
4545
input = '0' + ' ' * 2**10 + '0' # end warmup
4646

4747
re.match(importlib_metadata.EntryPoint.pattern, input)
48+
49+
50+
def normalize_perf():
51+
# python/cpython#143658
52+
import importlib_metadata # end warmup
53+
54+
importlib_metadata.Prepared.normalize('sample')

0 commit comments

Comments
 (0)