summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorQiyu8 <fangchunlin@huawei.com>2020-12-16 16:23:54 +0800
committerQiyu8 <fangchunlin@huawei.com>2020-12-16 16:23:54 +0800
commitb156231e40e280658dd1d6582d1d9734e0f56b09 (patch)
treef7e9be11e4971c14c131a236c556d3b33942443a /benchmarks
parentb5c5ad8e542413d1273c5a27fe14f439cabe869c (diff)
downloadnumpy-b156231e40e280658dd1d6582d1d9734e0f56b09.tar.gz
add benchmark test case for little order.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/bench_core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmarks/benchmarks/bench_core.py b/benchmarks/benchmarks/bench_core.py
index 0c2a18c15..1c028542d 100644
--- a/benchmarks/benchmarks/bench_core.py
+++ b/benchmarks/benchmarks/bench_core.py
@@ -165,6 +165,9 @@ class PackBits(Benchmark):
def time_packbits(self, dtype):
np.packbits(self.d)
+ def time_packbits_little(self, dtype):
+ np.packbits(self.d, bitorder="little")
+
def time_packbits_axis0(self, dtype):
np.packbits(self.d2, axis=0)