Skip to content

Commit a8878a5

Browse files
authored
Merge pull request #1520 from rust-lang/dashboard-fix
Revert "Do not hardcode stable compile-time benchmarks in dashboard"
2 parents 0ed302e + 681d584 commit a8878a5

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

site/src/request_handlers/dashboard.rs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use collector::benchmark::{compile_benchmark_dir, get_compile_benchmarks};
21
use std::sync::Arc;
32

43
use crate::api::{dashboard, ServerResult};
@@ -75,18 +74,23 @@ pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Re
7574
.collect::<Vec<_>>(),
7675
);
7776

78-
let stable_benchmarks: Vec<String> =
79-
get_compile_benchmarks(&compile_benchmark_dir(), None, None)
80-
.map_err(|error| format!("Could not load benchmarks: {error:?}"))?
81-
.into_iter()
82-
.filter(|benchmark| benchmark.category().is_stable())
83-
.map(|benchmark| benchmark.name.to_string())
84-
.collect();
85-
8677
let query = selector::Query::new()
78+
// FIXME: don't hardcode the stabilized benchmarks
79+
// This list was found via:
80+
// `rg supports.stable collector/compile-benchmarks/ -tjson -c --sort path`
8781
.set(
8882
selector::Tag::Benchmark,
89-
selector::Selector::Subset(stable_benchmarks),
83+
selector::Selector::Subset(vec![
84+
"encoding",
85+
"futures",
86+
"html5ever",
87+
"inflate",
88+
"piston-image",
89+
"regex",
90+
"style-servo",
91+
"syn",
92+
"tokio-webpush-simple",
93+
]),
9094
)
9195
.set(selector::Tag::Metric, selector::Selector::One("wall-time"));
9296

0 commit comments

Comments
 (0)