Skip to content

ProfileResult

One ParallelStrategy's results from profile_strategies(): wall-clock time (wall_time_mean/ wall_time_std, across however many repeats were run) plus, whenever real resource stats were collected, chunk_stats -- the raw, ungrouped per-chunk (or, for an unchunked/serial strategy, per-repeat) data every measurement was built from, concatenated across every repeat. peak_memory_mb/mean_cpu_percent are just a convenience summary view over chunk_stats (max / mean, respectively) -- nothing about the underlying per-chunk data is discarded, so a caller can build a finer-grained view (e.g. a quartile/box plot, see plot_profile_results) directly from it. speedup is wall_time_mean relative to the fully-serial strategy in the same profile_strategies call (its own program_executor and shot_executor both None), when one was given -- None otherwise, including for the baseline strategy's own result.

ProfileResult

ProfileResult(wall_time_mean: float, wall_time_std: float, chunk_stats: list[ChunkResourceStats] = list(), speedup: float | None = None) -> None

Attributes

Name Type Value Doc
chunk_stats list[ChunkResourceStats] dataclasses.field(default_factory=list)
mean_cpu_percent float | None read-only property
peak_memory_mb float | None read-only property
speedup float | None None
wall_time_mean float unset
wall_time_std float unset