Skip to content

Commit 09a37d4

Browse files
committed
Add colour_science
1 parent 219d13f commit 09a37d4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/ruff_benchmark/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ harness = false
3838

3939
[[bench]]
4040
name = "ty_project"
41+
required-features = ["walltime"]
4142
harness = false
4243

4344
[dependencies]
@@ -63,6 +64,9 @@ workspace = true
6364

6465
[features]
6566
codspeed = ["codspeed-criterion-compat"]
67+
# Enables benchmark that should only run with codspeed's walltime runner.
68+
# May disable benchmarks that only run on instrument runners.
69+
walltime = []
6670

6771
[target.'cfg(target_os = "windows")'.dev-dependencies]
6872
mimalloc = { workspace = true }

crates/ruff_benchmark/benches/ty_project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fn setup_rayon() {
209209
}
210210

211211
#[cfg(feature = "codspeed")]
212-
criterion_group!(real_world, anyio, attrs, pydantic, hydra);
212+
criterion_group!(real_world, anyio, attrs, colour_science, pydantic, hydra);
213213
#[cfg(not(feature = "codspeed"))]
214214
criterion_group!(
215215
real_world,

0 commit comments

Comments
 (0)