diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-09-22 10:49:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 10:49:20 -0500 |
commit | 31f19645a13ee221f037ade57f13006127aa4c46 (patch) | |
tree | 57103e0d203a2eab07cd5175dd0be770154d8eb4 /benchmarks | |
parent | 82ea8698c2f06c4c95a7341774faa029ca77e27f (diff) | |
parent | 7180479b7ce3e3b6455da66d0679274671a46bdc (diff) | |
download | numpy-31f19645a13ee221f037ade57f13006127aa4c46.tar.gz |
Merge pull request #11957 from juliantaylor/hugepages
ENH: mark that large allocations can use huge pages
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/benchmarks/bench_io.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |