Skip to content

Commit c62b408

Browse files
committed
Explicitly state which benchmark set should benchmark runtime and rustc benchmarks
1 parent 35642bc commit c62b408

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

collector/src/benchmark_set/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ impl BenchmarkSet {
4242
}
4343
}
4444

45+
pub const BENCHMARK_SET_RUNTIME_BENCHMARKS: u32 = 0;
46+
pub const BENCHMARK_SET_RUSTC: u32 = 0;
47+
4548
/// Return all benchmark sets for the given target.
4649
pub fn get_benchmark_sets_for_target(target: Target) -> Vec<BenchmarkSet> {
4750
use compile_benchmarks::*;

site/src/job_queue/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use crate::job_queue::utils::{parse_release_string, ExtractIf};
55
use crate::load::{partition_in_place, SiteCtxt};
66
use anyhow::Context;
77
use chrono::Utc;
8-
use collector::benchmark_set::get_benchmark_sets_for_target;
8+
use collector::benchmark_set::{
9+
get_benchmark_sets_for_target, BENCHMARK_SET_RUNTIME_BENCHMARKS, BENCHMARK_SET_RUSTC,
10+
};
911
use database::pool::{JobEnqueueResult, Transaction};
1012
use database::{
1113
BenchmarkJobKind, BenchmarkRequest, BenchmarkRequestIndex, BenchmarkRequestInsertResult,
@@ -367,7 +369,7 @@ pub async fn enqueue_benchmark_request(
367369
target,
368370
CodegenBackend::Llvm,
369371
Profile::Opt,
370-
0u32,
372+
BENCHMARK_SET_RUNTIME_BENCHMARKS,
371373
BenchmarkJobKind::Runtime,
372374
EnqueueMode::Commit,
373375
)
@@ -384,7 +386,7 @@ pub async fn enqueue_benchmark_request(
384386
Target::X86_64UnknownLinuxGnu,
385387
CodegenBackend::Llvm,
386388
Profile::Opt,
387-
0u32,
389+
BENCHMARK_SET_RUSTC,
388390
BenchmarkJobKind::Rustc,
389391
EnqueueMode::Commit,
390392
)

0 commit comments

Comments
 (0)