We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a85bb8 commit 7387b6dCopy full SHA for 7387b6d
asv_bench/benchmarks/series_methods.py
@@ -94,7 +94,7 @@ class IsInLongSeries:
94
params = [
95
["int64", "int32", "float64", "float32", "object"],
96
[1, 2, 5, 10, 50, 100, 1000, 10 ** 5],
97
- ["random_hits", "random_misses", "monotone"],
+ ["random_hits", "random_misses", "monotone_hits", "monotone_misses"],
98
]
99
param_names = ["dtype", "MaxNumber", "series_type"]
100
@@ -106,8 +106,10 @@ def setup(self, dtype, MaxNumber, series_type):
106
if series_type == "random_misses":
107
np.random.seed(42)
108
array = np.random.randint(0, MaxNumber, N) + MaxNumber
109
- if series_type == "monotone":
+ if series_type == "monotone_hits":
110
array = np.repeat(np.arange(MaxNumber), N // MaxNumber)
111
+ if series_type == "monotone_misses":
112
+ array = np.arange(N) + MaxNumber
113
self.series = Series(array).astype(dtype)
114
self.values = np.arange(MaxNumber).astype(dtype)
115
0 commit comments