Skip to content

Commit 79df1d8

Browse files
committed
Add benchmark
1 parent 0b3d22d commit 79df1d8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: asv_bench/benchmarks/algorithms.py

+12
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,16 @@ def time_quantile(self, quantile, interpolation, dtype):
141141
self.idx.quantile(quantile, interpolation=interpolation)
142142

143143

144+
class EASorting:
145+
params = [10**3, 10**5]
146+
147+
def setup(self, N):
148+
data = np.arange(N, dtype=float)
149+
data[40] = np.nan
150+
self.array = pd.array(data, dtype='Int64')
151+
152+
def time_argsort(self, N):
153+
self.array.argsort()
154+
155+
144156
from .pandas_vb_common import setup # noqa: F401 isort:skip

0 commit comments

Comments
 (0)