summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Whelan <topherwhelan@gmail.com>2019-02-18 15:00:20 -0800
committerSebastian Berg <sebastian@sipsolutions.net>2019-02-19 00:00:20 +0100
commit06da76c853c0b40e13860d3c4cf71fc345f23d4e (patch)
treeb3ba228ce58990947a0a8e7fcbd945d727be6f1a
parent1dfb0ab7358b0cae068b41b3d07452713594ef6b (diff)
downloadnumpy-06da76c853c0b40e13860d3c4cf71fc345f23d4e.tar.gz
BENCH: set ones in any/all benchmarks to 1 instead of 0 (#12986)
-rw-r--r--benchmarks/benchmarks/bench_reduce.py2
1 files changed, 1 insertions, 1 deletions
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()