From 06da76c853c0b40e13860d3c4cf71fc345f23d4e Mon Sep 17 00:00:00 2001 From: Christopher Whelan Date: Mon, 18 Feb 2019 15:00:20 -0800 Subject: BENCH: set ones in any/all benchmarks to 1 instead of 0 (#12986) --- benchmarks/benchmarks/bench_reduce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmarks') diff --git a/benchmarks/benchmarks/bench_reduce.py b/benchmarks/benchmarks/bench_reduce.py index ffc148cd2..0043d5357 100644 --- a/benchmarks/benchmarks/bench_reduce.py +++ b/benchmarks/benchmarks/bench_reduce.py @@ -32,7 +32,7 @@ class AnyAll(Benchmark): # avoid np.zeros's lazy allocation that would # cause page faults during benchmark self.zeros = np.full(100000, 0, bool) - self.ones = np.full(100000, 0, bool) + self.ones = np.full(100000, 1, bool) def time_all_fast(self): self.zeros.all() -- cgit v1.2.1