feat(bench): add configurable output directory for benchmarks (#2290)

This commit is contained in:
Sam Osborn
2025-05-01 11:00:54 -05:00
committed by GitHub
parent 21b82667cd
commit c6d0bc671f
4 changed files with 57 additions and 9 deletions
+7 -1
View File
@@ -533,7 +533,13 @@ pub async fn cli() -> Result<()> {
Some(Command::Bench { cmd }) => {
match cmd {
BenchCommand::Selectors { config } => BenchRunner::list_selectors(config)?,
BenchCommand::InitConfig { name } => BenchRunConfig::default().save(name),
BenchCommand::InitConfig { name } => {
let mut config = BenchRunConfig::default();
let cwd =
std::env::current_dir().expect("Failed to get current working directory");
config.output_dir = Some(cwd);
config.save(name);
}
BenchCommand::Run { config } => BenchRunner::new(config)?.run()?,
BenchCommand::EvalModel { config } => ModelRunner::from(config)?.run()?,
BenchCommand::ExecEval { config } => {