Skip to content

Commit fde8d33

Browse files
authored
BENCH: Increase sample of CategoricalIndexIndexing.time_get_indexer_list benchmark (pandas-dev#38545)
1 parent 76a5a4f commit fde8d33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

asv_bench/benchmarks/indexing.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
lower-level methods directly on Index and subclasses, see index_object.py,
44
indexing_engine.py, and index_cached.py
55
"""
6+
import itertools
67
import string
78
import warnings
89

@@ -256,7 +257,9 @@ def setup(self, index):
256257
"non_monotonic": CategoricalIndex(list("abc" * N)),
257258
}
258259
self.data = indices[index]
259-
self.data_unique = CategoricalIndex(list(string.printable))
260+
self.data_unique = CategoricalIndex(
261+
["".join(perm) for perm in itertools.permutations(string.printable, 3)]
262+
)
260263

261264
self.int_scalar = 10000
262265
self.int_list = list(range(10000))

0 commit comments

Comments
 (0)