Skip to content

Commit 28b3a8a

Browse files
authored
pythongh-141510: Update ftscalingbench to support frozendict (pythongh-144999)
1 parent 1d09916 commit 28b3a8a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Tools/ftscalingbench/ftscalingbench.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ def create_dict():
180180
"key": "value",
181181
}
182182

183+
if hasattr(__builtins__, "frozendict"):
184+
@register_benchmark
185+
def create_frozendict():
186+
for i in range(1000 * WORK_SCALE):
187+
d = frozendict(key="value")
188+
183189
thread_local = threading.local()
184190

185191
@register_benchmark

0 commit comments

Comments
 (0)