Skip to content

plugins.aea-cli-benchmark.aea_cli_benchmark.case_dialogues_memory_usage.case

Memory usage of dialogues across the time.

DialogueHandler Objects

class DialogueHandler()

Generate messages and process with dialogues.

__init__

def __init__() -> None

Set dialogues.

random_string

@property
def random_string() -> str

Get random string on every access.

process_message

def process_message() -> None

Process a message with dialogues.

update

def update(message: HttpMessage) -> HttpDialogue

Update dialogues with message.

reply

@staticmethod
def reply(dialogue: HttpDialogue, message: HttpMessage) -> Message

Construct and send a response for message received.

create

def create() -> HttpMessage

Make initial http request.

run

def run(messages_amount: int) -> List[Tuple[str, Union[float, int]]]

Test messages generation and memory consumption with dialogues.