We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc029a commit 3123fcfCopy full SHA for 3123fcf
asv_bench/benchmarks/index_object.py
@@ -219,3 +219,21 @@ def time_min(self):
219
220
def time_min_trivial(self):
221
self.idx_inc.min()
222
+
223
+class IndexOps(object):
224
+ goal_time = 0.2
225
226
+ def setup(self):
227
+ N = 10000
228
+ self.ridx = [RangeIndex(i * 100, (i + 1) * 100) for i in range(N)]
229
+ self.iidx = [idx.astype(int) for idx in self.ridx]
230
+ self.oidx = [idx.astype(str) for idx in self.iidx]
231
232
+ def time_concat_range(self):
233
+ self.ridx[0].append(self.ridx[1:])
234
235
+ def time_concat_int(self):
236
+ self.iidx[0].append(self.iidx[1:])
237
238
+ def time_concat_obj(self):
239
+ self.oidx[0].append(self.oidx[1:])
0 commit comments