introduce another big dict to the redis state manager benchmark

This commit is contained in:
Benedikt Bartscher 2024-12-14 14:05:29 +01:00
parent aa4e32dcd2
commit 2720c869a5
No known key found for this signature in database

View File

@ -43,6 +43,7 @@ class GrandChildState(ChildState):
"""Grandchild state class for testing.""" """Grandchild state class for testing."""
grand_child_counter: int = 0 grand_child_counter: int = 0
float_dict: dict[str, float] = {}
@computed_var @computed_var
def double_counter(self): def double_counter(self):
@ -145,6 +146,7 @@ def grand_child_state_big(grand_child_state: GrandChildState) -> GrandChildState
grand_child_state.child_counter = 200 grand_child_state.child_counter = 200
grand_child_state.grand_child_counter = 300 grand_child_state.grand_child_counter = 300
grand_child_state.int_dict = {str(i): i for i in range(10000)} grand_child_state.int_dict = {str(i): i for i in range(10000)}
grand_child_state.float_dict = {str(i): i + 0.5 for i in range(10000)}
return grand_child_state return grand_child_state