summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-05-21 21:56:16 +0300
committerGitHub <noreply@github.com>2019-05-21 21:56:16 +0300
commit8eb30b49fbd9d7a0fc270c27ecf86eb70d64ac62 (patch)
tree44e0f6a3ad3eda188d43984e5ade67048805ace5 /benchmarks
parent504b287bdf4745256044f336f17c88ddcb0175dd (diff)
parent82eab1c0ad35c5e91ec50e74609763fa7367e4d7 (diff)
downloadnumpy-8eb30b49fbd9d7a0fc270c27ecf86eb70d64ac62.tar.gz
Merge pull request #13541 from juliantaylor/restore-unpack-performance
ENH: restore unpack bit lookup table
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/bench_core.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmarks/benchmarks/bench_core.py b/benchmarks/benchmarks/bench_core.py
index 194ce3218..9e409dd91 100644
--- a/benchmarks/benchmarks/bench_core.py
+++ b/benchmarks/benchmarks/bench_core.py
@@ -162,12 +162,18 @@ class UnpackBits(Benchmark):
def time_unpackbits(self):
np.unpackbits(self.d)
+ def time_unpackbits_little(self):
+ np.unpackbits(self.d, bitorder="little")
+
def time_unpackbits_axis0(self):
np.unpackbits(self.d2, axis=0)
def time_unpackbits_axis1(self):
np.unpackbits(self.d2, axis=1)
+ def time_unpackbits_axis1_little(self):
+ np.unpackbits(self.d2, bitorder="little", axis=1)
+
class Indices(Benchmark):
def time_indices(self):