Skip to main content

Module benchmark_runners

Module benchmark_runners 

Source
Expand description

Native Rust benchmark runner module.

Dispatches to the existing benchmarks/ module functions. Provides the CLI-facing interface for running individual benchmarks, the full suite, and JSON output.

Ports functionality from:

  • scripts/run_rocm_benchmarks.sh → ROCm benchmarks
  • scripts/run_all_benchmarks_suite.sh → full suite
  • scripts/run_benchmarks.sh → individual benchmark dispatch

Structs§

BenchmarkOutput
Combined benchmark result for CLI output.

Functions§

available_benchmarks
Returns all available benchmark names in canonical order.
format_output_human
Format benchmark output as human-readable text.
format_output_json
Format benchmark output as JSON.
is_valid_benchmark
Returns true if the benchmark name is recognized.
run_benchmark
Run a single named benchmark, dispatching to the correct benchmarks:: function.