Skip to content

Commit 7387b6d

Browse files
committed
adding more test cases
1 parent 1a85bb8 commit 7387b6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

asv_bench/benchmarks/series_methods.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class IsInLongSeries:
9494
params = [
9595
["int64", "int32", "float64", "float32", "object"],
9696
[1, 2, 5, 10, 50, 100, 1000, 10 ** 5],
97-
["random_hits", "random_misses", "monotone"],
97+
["random_hits", "random_misses", "monotone_hits", "monotone_misses"],
9898
]
9999
param_names = ["dtype", "MaxNumber", "series_type"]
100100

@@ -106,8 +106,10 @@ def setup(self, dtype, MaxNumber, series_type):
106106
if series_type == "random_misses":
107107
np.random.seed(42)
108108
array = np.random.randint(0, MaxNumber, N) + MaxNumber
109-
if series_type == "monotone":
109+
if series_type == "monotone_hits":
110110
array = np.repeat(np.arange(MaxNumber), N // MaxNumber)
111+
if series_type == "monotone_misses":
112+
array = np.arange(N) + MaxNumber
111113
self.series = Series(array).astype(dtype)
112114
self.values = np.arange(MaxNumber).astype(dtype)
113115

0 commit comments

Comments
 (0)