Skip to content

Commit

Permalink
fix: Remove dots from report file naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoch committed Oct 1, 2024
1 parent 50702f0 commit 7d1612f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub async fn run(run_config: RunConfiguration,
Ok(results) => {
info!("Throughput is {requests_throughput} req/s",requests_throughput = results.get_results()[0].successful_request_rate().unwrap());
let report = benchmark.get_report();
let path = format!("results/{}_{}.json",run_config.tokenizer_name.replace("/","_"), chrono::Utc::now().format("%Y-%m-%d-%H-%M-%S"));
let path = format!("results/{}_{}.json",run_config.tokenizer_name.replace("/","_").replace(".","_"), chrono::Utc::now().format("%Y-%m-%d-%H-%M-%S"));
let path=Path::new(&path);
let writer=BenchmarkReportWriter::new(config.clone(), report)?;
writer.json(path).await?;
Expand Down

0 comments on commit 7d1612f

Please sign in to comment.