Skip to content

Commit 7261629

Browse files
authored
Modify condition to include index 1 in benchmark
Currently this benchmark doesn't run since we localize everything, index 1 should also be initialized.
1 parent 93fc5e7 commit 7261629

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bench/large_array_vs_numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def benchmark_numexpr_re_evaluate(expr, a, b, c, results, indices):
7878
for index in indices:
7979
start = index * chunk_size
8080
end = (index + 1) * chunk_size
81-
if index == 0:
81+
if index == 0 or index == 1:
8282
# Evaluate the first chunk with evaluate
8383
time_taken = timeit.timeit(
8484
lambda: ne.evaluate(

0 commit comments

Comments
 (0)