Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions collector/src/bin/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,21 @@ async fn create_benchmark_configs(
}
}

let is_release = match artifact_id {
ArtifactId::Commit(_) => false,
ArtifactId::Tag(_) => true,
};
if is_release {
bench_rustc = false;
bench_compile_benchmarks.retain(|benchmark| {
all_compile_benchmarks
.iter()
.find(|b| b.name == *benchmark)
.map(|b| b.category().is_stable())
.unwrap_or(false)
});
}

let compile_config = if bench_rustc || !bench_compile_benchmarks.is_empty() {
Some(CompileBenchmarkConfig {
benchmarks: all_compile_benchmarks
Expand All @@ -1813,8 +1828,8 @@ async fn create_benchmark_configs(
profiles: vec![job.profile().into()],
scenarios: Scenario::all(),
backends: vec![job.backend().into()],
iterations: None,
is_self_profile: true,
iterations: if is_release { Some(3) } else { None },
is_self_profile: !is_release,
bench_rustc,
targets: vec![job.target().into()],
})
Expand Down
Loading