https://github.com/python/cpython/commit/28b3a8ac08ed166705382113f5fea4b616064711
commit: 28b3a8ac08ed166705382113f5fea4b616064711
branch: main
author: Donghee Na <[email protected]>
committer: corona10 <[email protected]>
date: 2026-02-19T23:06:15+09:00
summary:

gh-141510: Update ftscalingbench to support frozendict (gh-144999)

files:
M Tools/ftscalingbench/ftscalingbench.py

diff --git a/Tools/ftscalingbench/ftscalingbench.py 
b/Tools/ftscalingbench/ftscalingbench.py
index 50d0e4c04fc319..f60f5adba5c12c 100644
--- a/Tools/ftscalingbench/ftscalingbench.py
+++ b/Tools/ftscalingbench/ftscalingbench.py
@@ -180,6 +180,12 @@ def create_dict():
             "key": "value",
         }
 
+if hasattr(__builtins__, "frozendict"):
+    @register_benchmark
+    def create_frozendict():
+        for i in range(1000 * WORK_SCALE):
+            d = frozendict(key="value")
+
 thread_local = threading.local()
 
 @register_benchmark

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to