From c6b418fc5bbdeb9c34c3939ee41bf3cd36445c69 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Fri, 14 Sep 2018 21:38:19 +0200 Subject: BENCH: add out of place memcpy benchmark --- benchmarks/benchmarks/bench_io.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'benchmarks') diff --git a/benchmarks/benchmarks/bench_io.py b/benchmarks/benchmarks/bench_io.py index ce30c4345..879f9b69e 100644 --- a/benchmarks/benchmarks/bench_io.py +++ b/benchmarks/benchmarks/bench_io.py @@ -21,6 +21,10 @@ class Copy(Benchmark): def time_memcpy(self, typename): self.d[...] = self.e_d + def time_memcpy_large_out_of_place(self, typename): + l = np.ones(1024**2, dtype=np.dtype(typename)) + l.copy() + def time_cont_assign(self, typename): self.d[...] = 1 -- cgit v1.2.1