spdl.pipeline.ProfileResult

class ProfileResult[source]

A data class contains profiling result, returned by profile_pipeline().

Attributes

name

The name of the pipe stage.

stats

Dataclass objects for each concurrency level tested, where each stat includes:

name: str

The name of the pipe stage.

stats: Sequence[_ProfileStats]

Dataclass objects for each concurrency level tested, where each stat includes:

  • concurrency: The concurrency level used for this benchmark.

  • qps: The number of items the stage processed per second.

  • occupancy_rate: The percentage of time the queue was occupied (0.0 to 1.0).