Skip to content

k4bench.results.model

k4bench.results.model

Data model for a single ddsim benchmark run.

RunResult dataclass

RunResult(label: str, returncode: int, n_events: int, wall_time_raw: str | None = None, wall_time_s: float | None = None, user_cpu_s: float | None = None, sys_cpu_s: float | None = None, peak_rss_mb: float | None = None, major_page_faults: int | None = None, voluntary_ctx_switches: int | None = None, involuntary_ctx_switches: int | None = None, output_size_mb: float | None = None, events_per_sec: float | None = None)

Metrics collected from one ddsim execution.

succeeded property

succeeded: bool

Return True if the process exited successfully.

total_cpu_s property

total_cpu_s: float | None

Return total CPU time = user + system.

cpu_efficiency property

cpu_efficiency: float | None

Return CPU / wall ratio.