From 3f3dfd85542257e7aa4de3f9666fa6e8d1f98806 Mon Sep 17 00:00:00 2001 From: kamille Date: Mon, 25 Nov 2024 00:30:30 +0800 Subject: [PATCH] revert vectorized equal to old. --- .../physical-plan/benches/vectorized_equal_to.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/datafusion/physical-plan/benches/vectorized_equal_to.rs b/datafusion/physical-plan/benches/vectorized_equal_to.rs index eb7ec7289b6f..7280afea0f6c 100644 --- a/datafusion/physical-plan/benches/vectorized_equal_to.rs +++ b/datafusion/physical-plan/benches/vectorized_equal_to.rs @@ -127,10 +127,13 @@ fn run_bench(c: &mut Criterion, description: &str, nullable: bool, vectorized: b } fn criterion_benchmark(c: &mut Criterion) { - run_bench(c, "### vectorized + nullable", true, true); - run_bench(c, "### vectorized + non-nullable", false, true); - run_bench(c, "### scalarized + nullable", true, false); - run_bench(c, "### scalarized + non-nullable", false, false); + let nullable = std::env::var("VEC_EQUAL_TO_NULLABLE").unwrap_or("true".to_string()); + + if &nullable == "true" { + run_bench(c, "### vectorized + nullable", true, true); + } else { + run_bench(c, "### vectorized + non-nullable", false, true); + } } criterion_group!(benches, criterion_benchmark);