Skip to main content

Module benchmark

Module benchmark 

Source
Expand description

Reproducible single-case reconstruction benchmarks.

The runner is generic over the existing reconstruction and measurement traits. Calling it once per concrete algorithm avoids a second algorithm registry or trait-object hierarchy.

Structs§

BenchmarkFrameRecord
Per-acquisition-frame benchmark identity and residual metric.
BenchmarkProfile
Stable metadata for a named benchmark profile.
BenchmarkRecord
Serializable summary of one algorithm run on one immutable problem.

Constants§

BENCHMARK_PROFILES
Built-in benchmark profile metadata in display order.
BENCHMARK_RECORD_FORMAT_VERSION
Current JSON/CSV benchmark record schema version.
CPU_BENCHMARK_PROFILE
Name of the more representative CPU timing profile.
SMOKE_BENCHMARK_PROFILE
Name of the fast offline synthetic validation profile.

Functions§

annotate_benchmark_profile
Adds the selected profile metadata to one benchmark record.
benchmark_profile
Looks up a built-in profile by its exact stable name.
run_benchmark_case
Runs one concrete algorithm and always returns a record. Reconstruction or metric failures are stored in record.error; successful reconstruction data is returned separately so callers may inspect or save it.
save_benchmark_outputs
Saves the standard reconstruction artifacts for a benchmark case and adds their paths to the record.
write_benchmark_csv
Writes one flattened CSV row per benchmark record.
write_benchmark_json
Writes a versioned pretty-printed JSON report containing records.