Skip to main content

rskit_bench/
lib.rs

1//! ML benchmarking framework: evaluators, metrics, reports, visualization.
2//!
3//! Migrated from sentinel/rs-services/ruskit to use rskit-errors (AppResult/AppError) instead of anyhow,
4//! and rskit-provider for the Provider/RequestResponse traits.
5//!
6//! Benchmark orchestration accepts injected clocks and storage. Use [`FixedClock`]
7//! and a test-owned [`RunStorage`] implementation for deterministic tests; use [`SystemClock`]
8//! and [`FileRunStorage`] for normal CLI runs.
9
10pub mod cli;
11pub mod compare;
12pub mod curves;
13pub mod dataset;
14pub mod dataset_loader;
15pub mod evaluator;
16pub mod execution;
17pub mod metric;
18pub mod middleware;
19pub mod report_gen;
20pub mod result;
21mod run_id;
22pub mod run_storage;
23pub mod runner;
24pub mod schema;
25pub mod types;
26pub mod viz;
27
28// Primary crate API.
29pub use evaluator::{Evaluator, EvaluatorFunc, FromProvider};
30pub use execution::BenchExecutionPlan;
31pub use result::{BenchRunResult, MetricResult};
32pub use rskit_util::time::{
33    Clock as BenchClock, FixedClock, SharedClock, SystemClock, system_clock,
34};
35pub use run_storage::{FileRunStorage, ListOptions, RunStorage};
36pub use runner::{BenchRunner, RunOptions};
37pub use types::{BenchSample, Prediction, ScoredSample};