From f873d2ac128a2f6897bf814a3b252454aa7be3e2 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Wed, 21 Aug 2024 17:13:11 +0200 Subject: [PATCH] Revert "Use the system allocator for codspeed benchmarks" (#13035) --- crates/ruff_benchmark/Cargo.toml | 2 +- crates/ruff_benchmark/benches/formatter.rs | 1 - crates/ruff_benchmark/benches/lexer.rs | 1 - crates/ruff_benchmark/benches/linter.rs | 1 - crates/ruff_benchmark/benches/parser.rs | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/ruff_benchmark/Cargo.toml b/crates/ruff_benchmark/Cargo.toml index 3f27d9344d..3efe932a14 100644 --- a/crates/ruff_benchmark/Cargo.toml +++ b/crates/ruff_benchmark/Cargo.toml @@ -64,5 +64,5 @@ codspeed = ["codspeed-criterion-compat"] [target.'cfg(target_os = "windows")'.dev-dependencies] mimalloc = { workspace = true } -[target.'cfg(all(not(target_os = "windows"), not(codspeed), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dev-dependencies] +[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dev-dependencies] tikv-jemallocator = { workspace = true } diff --git a/crates/ruff_benchmark/benches/formatter.rs b/crates/ruff_benchmark/benches/formatter.rs index c3c044ced8..af2b1caa76 100644 --- a/crates/ruff_benchmark/benches/formatter.rs +++ b/crates/ruff_benchmark/benches/formatter.rs @@ -15,7 +15,6 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; #[cfg(all( not(target_os = "windows"), not(target_os = "openbsd"), - not(codspeed), any( target_arch = "x86_64", target_arch = "aarch64", diff --git a/crates/ruff_benchmark/benches/lexer.rs b/crates/ruff_benchmark/benches/lexer.rs index 178da63e9c..64b68a7a35 100644 --- a/crates/ruff_benchmark/benches/lexer.rs +++ b/crates/ruff_benchmark/benches/lexer.rs @@ -11,7 +11,6 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; #[cfg(all( not(target_os = "windows"), not(target_os = "openbsd"), - not(codspeed), any( target_arch = "x86_64", target_arch = "aarch64", diff --git a/crates/ruff_benchmark/benches/linter.rs b/crates/ruff_benchmark/benches/linter.rs index 0286b5b701..dc27674ade 100644 --- a/crates/ruff_benchmark/benches/linter.rs +++ b/crates/ruff_benchmark/benches/linter.rs @@ -19,7 +19,6 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; #[cfg(all( not(target_os = "windows"), not(target_os = "openbsd"), - not(codspeed), any( target_arch = "x86_64", target_arch = "aarch64", diff --git a/crates/ruff_benchmark/benches/parser.rs b/crates/ruff_benchmark/benches/parser.rs index 1b986ca7c7..ec2fa671c1 100644 --- a/crates/ruff_benchmark/benches/parser.rs +++ b/crates/ruff_benchmark/benches/parser.rs @@ -13,7 +13,6 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; #[cfg(all( not(target_os = "windows"), not(target_os = "openbsd"), - not(codspeed), any( target_arch = "x86_64", target_arch = "aarch64",