Skip to content

Commit

Permalink
Run all benchmarks when empty name specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Feb 19, 2025
1 parent 560e9a5 commit a04e020
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build_tools/build/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,15 @@ impl Benchmarks {
match &self.bench_type {
BenchmarkType::All => Some("bench".to_string()),
BenchmarkType::Runtime => match &self.bench_name {
None => Some("runtime-benchmarks/bench".to_string()),
Some(name) => Some(format!("runtime-benchmarks/benchOnly {}", name)),
Some(name) if !name.is_empty() =>
Some(format!("runtime-benchmarks/benchOnly {}", name)),
_ => Some("runtime-benchmarks/bench".to_string()),
},
BenchmarkType::Enso => None,
BenchmarkType::EnsoJMH => match &self.bench_name {
None => Some("std-benchmarks/bench".to_string()),
Some(name) => Some(format!("std-benchmarks/benchOnly {}", name)),
Some(name) if !name.is_empty() =>
Some(format!("std-benchmarks/benchOnly {}", name)),
_ => Some("std-benchmarks/bench".to_string()),
},
}
}
Expand Down

0 comments on commit a04e020

Please sign in to comment.