qnetbench.harness¶
One run of one application, on one backend, under one arbitration mode, over one
topology. Everything in the suite goes through run_once.
Narrative guide: Running benchmarks and Command line.
qnetbench.harness.runner
¶
Run one application on one backend under one arbitration mode, over a topology.
This is the single entry point the CLI, the tests, and (later) the cross-policy sweep all go through.
run_once
¶
run_once(
app_name: str,
*,
seed: int = 0,
backend: str = "reference",
arbitration: str = "native",
topology: Topology | None = None,
cfg: dict[str, object] | None = None,
pair_age: float = 0.0,
coherence_time: float = inf,
) -> list[Event]
Execute one run and return its trace as a list of events.
pair_age/coherence_time model staleness (used by characterization); they
are only supported on the reference backend.
Source code in qnetbench/harness/runner.py
The command-line entry point¶
qnetbench.harness.cli
¶
qnetbench command-line entry point.