fhelium.benchmarks.v1.runner
Sequential, checkpointing execution of FHElium Benchmark v1.
ProgressCallback
data View source
python
ProgressCallback = Callable[[str, str], None]1
ReportWriter
data View source
python
ReportWriter = Callable[[str | PathLike[str], BenchmarkReport], None]1
BenchmarkCaseUnavailable
class View source
python
BenchmarkCaseUnavailable(reason: str, *, details: Mapping[str, Any] | None=None)1
Bases: Exception
Signal that leaf preflight cannot measure a case on this machine.
BenchmarkCaseFailed
class View source
python
BenchmarkCaseFailed(message: str, *, result: BenchmarkResult | None=None)1
Bases: Exception
Signal a failure while retaining an optional partial leaf result.
BenchmarkRunner
class View source
python
BenchmarkRunner(*, platform_collector: Callable[..., PlatformSnapshot]=collect_platform, report_writer: ReportWriter=write_report_atomic, clock: Callable[[], str]=_utc_now)1
Run the fixed Benchmark v1 specification with atomic checkpoints.
The constructor binds the five package-owned cases and definitions directly. The CLI and run_benchmark accept no registry or case/profile/parameter overrides.
run
method
python
def run(*, execution: BenchmarkExecution, output_path: str | PathLike[str], invocation: Sequence[str] | None=None, progress: ProgressCallback | None=None, platform_snapshot: PlatformSnapshot | None=None) -> BenchmarkReport: ...1
Run Benchmark v1, checkpoint after every case, and return its report.
run_benchmark
function View source
python
def run_benchmark(*, execution: BenchmarkExecution, output_path: str | PathLike[str], invocation: Sequence[str] | None=None, progress: ProgressCallback | None=None) -> BenchmarkReport: ...1
Run the package-owned Benchmark v1 specification.