Skip to content

Commit

Permalink
fix: Result filename prefixed by model
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoch committed Sep 20, 2024
1 parent 469edab commit d25f6c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/executors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ impl Executor for ConstantArrivalRateExecutor {
active_vus.fetch_sub(1, std::sync::atomic::Ordering::SeqCst);
// wait for all VUs to finish
if start.elapsed() > self.config.duration {
info!("Duration reached, waiting for all VUs to finish...");
if active_vus.load(std::sync::atomic::Ordering::SeqCst) == 0 {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,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", chrono::Utc::now().format("%Y-%m-%d-%H-%M-%S"),run_config.tokenizer_name.replace("/","_"));
let path = format!("results/{}_{}.json",run_config.tokenizer_name.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 d25f6c1

Please sign in to comment.