From 0a7e57177e9fbafdbc535fe04d149ef934178bdf Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 23 Aug 2021 16:39:38 +0300 Subject: [PATCH] internal: use single env var to controll all benchmarks --- crates/syntax/src/tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/syntax/src/tests.rs b/crates/syntax/src/tests.rs index 29b91379ff2..ca48ca14e4e 100644 --- a/crates/syntax/src/tests.rs +++ b/crates/syntax/src/tests.rs @@ -11,7 +11,7 @@ use std::{ use ast::NameOwner; use expect_test::expect_file; use rayon::prelude::*; -use test_utils::{bench, bench_fixture, project_root, skip_slow_tests}; +use test_utils::{bench, bench_fixture, project_root}; use crate::{ast, fuzz, tokenize, AstNode, SourceFile, SyntaxError, TextRange, TextSize, Token}; @@ -48,9 +48,10 @@ fn main() { #[test] fn benchmark_parser() { - if skip_slow_tests() { + if std::env::var("RUN_SLOW_BENCHES").is_err() { return; } + let data = bench_fixture::glorious_old_parser(); let tree = { let _b = bench("parsing");