Skip to content

Commit aa4722c

Browse files
committed
Add one more bench
1 parent 3e32db5 commit aa4722c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

asv_bench/benchmarks/index_object.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,14 @@ def time_get_loc(self):
183183

184184
class IntervalIndexMethod(object):
185185
# GH 24813
186-
def setup(self):
187-
N = 10**5
186+
params = [10**3, 10**5]
187+
188+
def setup(self, N):
188189
left = np.append(np.arange(N), np.array(0))
189190
right = np.append(np.arange(1, N + 1), np.array(1))
190191
self.intv = IntervalIndex.from_arrays(left, right)
191192

192-
def time_monotonic_inc(self):
193+
def time_monotonic_inc(self, N):
193194
self.intv.is_monotonic_increasing
194195

195196

0 commit comments

Comments
 (0)