8000
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 2b5c0cf commit 31c8a52Copy full SHA for 31c8a52
asv_bench/benchmarks/index_object.py
@@ -219,3 +219,22 @@ def time_min(self):
219
220
def time_min_trivial(self):
221
self.idx_inc.min()
222
+
223
224
+class IndexOps(object):
225
+ goal_time = 0.2
226
227
+ def setup(self):
228
+ N = 10000
229
+ self.ridx = [RangeIndex(i * 100, (i + 1) * 100) for i in range(N)]
230
+ self.iidx = [idx.astype(int) for idx in self.ridx]
231
+ self.oidx = [idx.astype(str) for idx in self.iidx]
232
233
+ def time_concat_range(self):
234
+ self.ridx[0].append(self.ridx[1:])
235
236
+ def time_concat_int(self):
237
+ self.iidx[0].append(self.iidx[1:])
238
239
+ def time_concat_obj(self):
240
+ self.oidx[0].append(self.oidx[1:])
0 commit comments