diff --git a/crates/rust-analyzer/src/integrated_benchmarks.rs b/crates/rust-analyzer/src/integrated_benchmarks.rs index 411446b042b..3dcbe397ad8 100644 --- a/crates/rust-analyzer/src/integrated_benchmarks.rs +++ b/crates/rust-analyzer/src/integrated_benchmarks.rs @@ -21,8 +21,7 @@ #[test] fn integrated_highlighting_benchmark() { - // Don't run slow benchmark by default - if true { + if std::env::var("RUN_SLOW_BENCHES").is_err() { return; } @@ -76,8 +75,7 @@ fn integrated_highlighting_benchmark() { #[test] fn integrated_completion_benchmark() { - // Don't run slow benchmark by default - if true { + if std::env::var("RUN_SLOW_BENCHES").is_err() { return; }