diff --git a/turbopack/crates/turbo-tasks-testing/tests/performance.rs b/turbopack/crates/turbo-tasks-testing/tests/performance.rs index 412b0b07988fa..1392bd154f574 100644 --- a/turbopack/crates/turbo-tasks-testing/tests/performance.rs +++ b/turbopack/crates/turbo-tasks-testing/tests/performance.rs @@ -14,6 +14,14 @@ const COUNT2: u32 = 2000; #[tokio::test] async fn many_calls_to_many_children() { + if matches!( + std::env::var("TURBOPACK_TEST_PERFORMANCE").ok().as_deref(), + None | Some("") | Some("no") | Some("false") + ) { + println!("Skipping test, pass `TURBOPACK_TEST_PERFORMANCE=yes` to run it"); + return; + } + run(®ISTRATION, || async { // The first call will actually execute many_children and its children. let start = std::time::Instant::now();