Zafu/Benchmark/Game/Harnesssource code:
public dependencies: Bosatsu/IO/Bytes,
Zafu/Control/Result
BenchmarkCli,
BenchmarkRunRecord,
BenchmarkRunResult,
OutputChannelbenchmark_result_csv_header,
is_bosatsu_eval_argv0,
normalize_cli_args,
normalize_text_fixture,
parse_benchmark_cli,
render_benchmark_result_csv_row,
render_binary_output,
render_csv_row, render_fixed_9, render_text_output, render_validation_error,
to_benchmark_run_result,
validate_exact_bytes_output,
validate_exact_text_output,
validate_float_lines_outputBenchmarkClitype BenchmarkCli
ExitCli(exit_code: Int, channel: OutputChannel, message: String)RunInput(input: Int)BenchmarkRunRecordCSV rows intentionally keep the stable 10-column subset. Use
BenchmarkRunRecord for the full per-run contract and
project down when writing the checked-in CSV companion artifact.
type BenchmarkRunRecord
BenchmarkRunResulttype BenchmarkRunResult
OutputChanneltype OutputChannel
StderrChannelStdoutChannelbenchmark_result_csv_headerreferences: String
benchmark_result_csv_header: String
is_bosatsu_eval_argv0def is_bosatsu_eval_argv0(token: String) -> Bool
normalize_cli_argsOnly strip argv0 when it names the active benchmark executable.
Invalid direct argv should stay intact so the shared CLI path rejects
the supplied token instead of silently dropping it.
bosatsu eval --run injects its own driver name, so keep
that one special-case strip to preserve the repo's documented benchmark
entrypoint contract.
def normalize_cli_args(command_name: String, args: List[String]) -> List[String]
normalize_text_fixturereferences: String
def normalize_text_fixture(value: String) -> String
parse_benchmark_clireferences: BenchmarkCli, List, String
def parse_benchmark_cli(command_name: String, args: List[String]) -> BenchmarkCli
render_benchmark_result_csv_rowreferences: BenchmarkRunResult, String
def render_benchmark_result_csv_row(result: BenchmarkRunResult) -> String
render_binary_outputreferences: Bosatsu/IO/Bytes::Bytes,
List
def render_binary_output(chunks: List[Bosatsu/IO/Bytes::Bytes]) -> Bosatsu/IO/Bytes::Bytes
render_csv_rowdef render_csv_row(fields: List[String]) -> String
render_fixed_9def render_fixed_9(value: Float64) -> String
render_text_outputdef render_text_output(lines: List[String]) -> String
render_validation_errorreferences: String
def render_validation_error(label: String, expected: String, actual: String) -> String
to_benchmark_run_resultreferences: BenchmarkRunRecord, BenchmarkRunResult
def to_benchmark_run_result(record: BenchmarkRunRecord) -> BenchmarkRunResult
validate_exact_bytes_outputreferences: Bosatsu/IO/Bytes::Bytes,
String,
Unit,
Zafu/Control/Result::Result
def validate_exact_bytes_output(label: String, expected: Bosatsu/IO/Bytes::Bytes, actual: Bosatsu/IO/Bytes::Bytes) -> Zafu/Control/Result::Result[String, ()]
validate_exact_text_outputreferences: String,
Unit,
Zafu/Control/Result::Result
def validate_exact_text_output(label: String, expected_fixture: String, actual_output: String) -> Zafu/Control/Result::Result[String, ()]
validate_float_lines_outputreferences: Float64,
String,
Unit,
Zafu/Control/Result::Result
def validate_float_lines_output(label: String, abs_tolerance: Float64, expected_fixture: String, actual_output: String) -> Zafu/Control/Result::Result[String, ()]