Skip to content

Commit 4009f1e

Browse files
committed
Introduce the "stable" benchmark category.
(Also, temporarily, the "primary-and-stable" category. All the current "primary-and-stable" benchmarks will become "stable" in the near future.) These categories are used in `perf-config.json` and the code that chooses which benchmarks to execute. They allow the `supports_stable` field to be removed. However, when it comes to storing the category in the database, to avoid database format changes, `Category` gets split into `supports_stable` (a bool) and `category` (either "primary" or "secondary"). Some notable details: - `Category` is moved to a different file, because it's no longer used by the DB code. - Some methods are moved from `BenchmarkConfig` to `Category`. - `Category` now derives `clap::ArgEnum`, which improves the `download` command's help message by listing the possible values.
1 parent 1d08022 commit 4009f1e

File tree

18 files changed

+117
-105
lines changed

18 files changed

+117
-105
lines changed

collector/benchmarks/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ The suite changes over time. Sometimes the code for a benchmark is updated, in
77
which case a small suffix will be added (starting with "-2", then "-3", and so
88
on.)
99

10-
There are two categories of benchmarks, **Primary** and **Secondary**.
10+
There are three categories of benchmarks, **Primary**, **Secondary**, and
11+
**Stable**.
1112

1213
## Primary
1314

@@ -120,3 +121,21 @@ compiler in interesting ways.
120121
- **wg-grammar**: A parser generator.
121122
[Stresses](https://github.com/rust-lang/rust/issues/58178) the borrow
122123
checker's implementation of NLL.
124+
125+
**Stable**
126+
127+
These are benchmarks used in the
128+
[dashboard](https://perf.rust-lang.org/dashboard.html). They provide the
129+
longest continuous data set for compiler performance. As a result, they are
130+
quite old (e.g. 2017 or earlier), and not necessarily reflective of typical
131+
Rust code being written today.
132+
133+
- **encoding**: See above.
134+
- **futures**: See above.
135+
- **html5ever**: See above.
136+
- **inflate**: See above.
137+
- **regex**: See above.
138+
- **piston-image**: See above.
139+
- **style-servo**: See above.
140+
- **syn**: See above.
141+
- **tokio-webpush-simple**: See above.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"supports_stable": true,
32
"touch_file": "src/lib.rs",
4-
"category": "primary"
3+
"category": "primary-and-stable"
54
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"supports_stable": true,
3-
"category": "primary"
2+
"category": "primary-and-stable"
43
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"supports_stable": true,
32
"touch_file": "src/lib.rs",
4-
"category": "primary"
3+
"category": "primary-and-stable"
54
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"supports_stable": true,
3-
"category": "primary"
2+
"category": "primary-and-stable"
43
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"supports_stable": false,
32
"touch_file": "src/lib.rs",
43
"category": "secondary"
54
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"supports_stable": true,
32
"runs": 1,
4-
"category": "primary"
3+
"category": "primary-and-stable"
54
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"supports_stable": true,
32
"touch_file": "src/lib.rs",
4-
"category": "primary"
3+
"category": "primary-and-stable"
54
}

collector/benchmarks/style-servo/perf-config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"cargo_rustc_opts": "--cap-lints=warn",
44
"cargo_toml": "components/style/Cargo.toml",
55
"runs": 1,
6-
"supports_stable": true,
76
"touch_file": "components/style/lib.rs",
8-
"category": "primary"
7+
"category": "primary-and-stable"
98
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"supports_stable": true,
32
"touch_file": "src/lib.rs",
4-
"category": "primary"
3+
"category": "primary-and-stable"
54
}

0 commit comments

Comments
 (0)