From 65a099d4f66c82b48372790d91b7738233043e68 Mon Sep 17 00:00:00 2001 From: Lars Grueter Date: Fri, 23 Nov 2018 16:46:54 +0100 Subject: BENCH: Pin dtype to float64 for np.pad's benchmarks --- benchmarks/benchmarks/bench_lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'benchmarks') diff --git a/benchmarks/benchmarks/bench_lib.py b/benchmarks/benchmarks/bench_lib.py index 05d6a4aae..211055c4c 100644 --- a/benchmarks/benchmarks/bench_lib.py +++ b/benchmarks/benchmarks/bench_lib.py @@ -16,8 +16,8 @@ class Pad(Benchmark): [(1000,), (10, 100), (10, 10, 10), - # 50 * 512 * 512 = 13 million points = 46 MB. should be a good - # out of cache describing a typical usecase + # 50 * 512 * 512 * 64 bits = 100 MiB, corresponds to typical use cases + # for large arrays which are out of cache (50, 512, 512)], [1, 3, @@ -34,7 +34,7 @@ class Pad(Benchmark): def setup(self, shape, pad_width, mode): # Make sure to fill the array to make the OS page fault # in the setup phase and not the timed phase - self.array = np.full(shape, fill_value=1) + self.array = np.full(shape, fill_value=1, dtype=np.float64) def time_pad(self, shape, pad_width, mode): np.pad(self.array, pad_width, mode) -- cgit v1.2.1