Skip to content

Commit bcc85e8

Browse files
committed
PERF: test indexes concat
1 parent b6c0f19 commit bcc85e8

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: asv_bench/benchmarks/index_concat.py

Whitespace-only changes.

Diff for: asv_bench/benchmarks/index_object.py

+20
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,23 @@ def time_datetime_level_values_full(self):
199199

200200
def time_datetime_level_values_sliced(self):
201201
self.mi[:10].values
202+
203+
204+
class IndexOps(object):
205+
goal_time = 0.2
206+
207+
def setup(self):
208+
N = 1000
209+
idx = Index(range(10))
210+
self.ridx = [idx] * N
211+
self.iidx = [idx.astype(int)] * N
212+
self.oidx = [idx.astype(str)] * N
213+
214+
def time_concat_range(self):
215+
self.ridx[0].append(self.ridx[1:])
216+
217+
def time_concat_int(self):
218+
self.iidx[0].append(self.iidx[1:])
219+
220+
def time_concat_obj(self):
221+
self.oidx[0].append(self.oidx[1:])

0 commit comments

Comments
 (0)