use crate::bench::registry::{BenchCasePoint, BenchRunContext, RustBenchRunner};
use crate::bench::result::{BenchmarkResultRow, ParamMap};
use crate::bench::runners::{
DemBuildMode, plan_decoder_point_identity_with_dem_mode, run_decoder_point_with_dem_mode,
};
use crate::decode::VacuousDecoder;
pub struct PredictZeroRunner;
impl RustBenchRunner for PredictZeroRunner {
fn name(&self) -> &'static str {
"predict-zero"
}
fn plan_point_identity(
&self,
point: &BenchCasePoint,
ctx: &BenchRunContext,
) -> Result<String, String> {
plan_decoder_point_identity_with_dem_mode(
self.name(),
point,
ctx,
&ParamMap::new(),
DemBuildMode::Raw,
)
}
fn run_point(
&self,
point: &BenchCasePoint,
ctx: &BenchRunContext,
) -> Result<BenchmarkResultRow, String> {
run_decoder_point_with_dem_mode(
self.name(),
&VacuousDecoder,
point,
ctx,
&ParamMap::new(),
DemBuildMode::Raw,
)
}
}