diff options
author | Christopher Whelan <topherwhelan@gmail.com> | 2019-02-18 15:00:20 -0800 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2019-02-19 00:00:20 +0100 |
commit | 06da76c853c0b40e13860d3c4cf71fc345f23d4e (patch) | |
tree | b3ba228ce58990947a0a8e7fcbd945d727be6f1a /benchmarks | |
parent | 1dfb0ab7358b0cae068b41b3d07452713594ef6b (diff) | |
download | numpy-06da76c853c0b40e13860d3c4cf71fc345f23d4e.tar.gz |
BENCH: set ones in any/all benchmarks to 1 instead of 0 (#12986)
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/benchmarks/bench_reduce.py | 2 |
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() |