Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion collector/src/bin/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,8 @@ async fn create_benchmark_configs(
}
}
database::BenchmarkJobKind::Rustc => {
bench_rustc = !is_release;
assert!(!is_release, "Release job should not benchmark rustc");
bench_rustc = true;
}
}

Expand Down
33 changes: 18 additions & 15 deletions site/src/job_queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,21 +361,24 @@ pub async fn enqueue_benchmark_request(
.await?;
}

// Enqueue Rustc job for only for x86_64 & llvm. This benchmark is how long
// it takes to build the rust compiler. It takes a while to run and is
// assumed that if the compilation of other rust project improve then this
// too would improve.
enqueue_job(
&mut tx,
request_tag,
Target::X86_64UnknownLinuxGnu,
CodegenBackend::Llvm,
Profile::Opt,
0u32,
BenchmarkJobKind::Rustc,
EnqueueMode::Commit,
)
.await?;
// Enqueue Rustc job only for x86_64 & LLVM, and if we're not benchmarking a release commit.
// This benchmark measures how long it takes to build the rust compiler.
match request.commit_type() {
BenchmarkRequestType::Try { .. } | BenchmarkRequestType::Master { .. } => {
enqueue_job(
&mut tx,
request_tag,
Target::X86_64UnknownLinuxGnu,
CodegenBackend::Llvm,
Profile::Opt,
0u32,
BenchmarkJobKind::Rustc,
EnqueueMode::Commit,
)
.await?;
}
BenchmarkRequestType::Release { .. } => {}
}

tx.conn()
.update_benchmark_request_status(request_tag, BenchmarkRequestStatus::InProgress)
Expand Down
Loading