DikeBenchmarker.resultconsumers package

Submodules

DikeBenchmarker.resultconsumers.abstract_consumer module

Abstract consumer for benchmarking results.

class DikeBenchmarker.resultconsumers.abstract_consumer.AbstractConsumer[source]

Bases: ABC

Consumes the result of the benchmarking process. It is guaranteed that results are processed in order.

abstractmethod consume_result(result: Result)[source]

Process a Result.

Parameters:

result (Result) – the last result obtained.

DikeBenchmarker.resultconsumers.csv_consumer module

DikeBenchmarker.resultconsumers.lambda_consumer module

Lambda consumer for benchmarking results.

class DikeBenchmarker.resultconsumers.lambda_consumer.LambdaConsumer(callback: Callable[[Result], None])[source]

Bases: AbstractConsumer

Applies a given function to the result.

consume_result(result: Result)[source]

Process a Result.

Parameters:

result (Result) – the last result obtained.

DikeBenchmarker.resultconsumers.then_result_consumer module

ThenResultConsumer for benchmarking results.

class DikeBenchmarker.resultconsumers.then_result_consumer.ThenResultConsumer(consumers: list[AbstractConsumer])[source]

Bases: AbstractConsumer

Applies a series of result consumer in order

consume_result(result: Result)[source]

Process a Result.

Parameters:

result (Result) – the last result obtained.

Module contents