mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-141510: Update ftscalingbench to support frozendict (gh-144999)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user