Skip to content

Commit 47fa09f

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

asv_bench/benchmarks/index_concat.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from .pandas_vb_common import *
2+
3+
4+
class Int64Indexing(object):
5+
goal_time = 0.2
6+
7+
def setup(self):
8+
idx = Index(range(10))
9+
self.ridx = [idx] * 10
10+
self.iidx = [idx.astye(int)] * 10
11+
self.oidx = [idx.astype(str)] * 10
12+
13+
def time_concat_range(self):
14+
self.ridx[0].append(self.ridx[1:])
15+
16+
def time_concat_int(self):
17+
self.iidx[0].append(self.iidx[1:])
18+
19+
def time_concat_obj(self):
20+
self.oidx[0].append(self.oidx[1:])

0 commit comments

Comments
 (0)