From 40cb4f8ec95d847baa22c02c79679ad16ddcd0c2 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 5 Oct 2022 09:23:27 -0700 Subject: [PATCH] Skip running benchmarks in CI (#1085) --- benches/function.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/benches/function.rs b/benches/function.rs index 33370003..ef8a3d34 100644 --- a/benches/function.rs +++ b/benches/function.rs @@ -1,6 +1,10 @@ use std::os::raw::c_void; fn main() { + // Skip running benchmarks in debug or CI. + if cfg!(debug_assertions) || std::env::var("CI").is_ok() { + return; + } v8::V8::set_flags_from_string( "--turbo_fast_api_calls --allow_natives_syntax", );