summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2017-02-19 10:09:14 -0500
committerGitHub <noreply@github.com>2017-02-19 10:09:14 -0500
commiteda7009cf14a9b8e9b03ddd5a8ec369646c8525d (patch)
tree9f896c628ea3f512d5a05790f6ca0d1bababd487 /benchmarks
parentaba10bb5829caee63a20251a226d8cb716ec1125 (diff)
parent82ce0a1e8ccf1b83badb9fac3c2160e5896051b5 (diff)
downloadnumpy-eda7009cf14a9b8e9b03ddd5a8ec369646c8525d.tar.gz
Merge pull request #8629 from eric-wieser/speedup-indices
ENH: Improve the efficiency of indices
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/bench_core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmarks/benchmarks/bench_core.py b/benchmarks/benchmarks/bench_core.py
index 378fc762f..1f7c23310 100644
--- a/benchmarks/benchmarks/bench_core.py
+++ b/benchmarks/benchmarks/bench_core.py
@@ -162,3 +162,8 @@ class UnpackBits(Benchmark):
def time_unpackbits_axis1(self):
np.unpackbits(self.d2, axis=1)
+
+
+class Indices(Benchmark):
+ def time_indices(self):
+ np.indices((1000, 500))