From 7261629f77295e0f9271ed33857943aaa7426456 Mon Sep 17 00:00:00 2001 From: Teng Liu <27rabbitlt@gmail.com> Date: Mon, 2 Mar 2026 17:16:12 +0100 Subject: [PATCH] Modify condition to include index 1 in benchmark Currently this benchmark doesn't run since we localize everything, index 1 should also be initialized. --- bench/large_array_vs_numpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/large_array_vs_numpy.py b/bench/large_array_vs_numpy.py index b480261..6631f8d 100644 --- a/bench/large_array_vs_numpy.py +++ b/bench/large_array_vs_numpy.py @@ -78,7 +78,7 @@ def benchmark_numexpr_re_evaluate(expr, a, b, c, results, indices): for index in indices: start = index * chunk_size end = (index + 1) * chunk_size - if index == 0: + if index == 0 or index == 1: # Evaluate the first chunk with evaluate time_taken = timeit.timeit( lambda: ne.evaluate(