Skip to content

Commit e083827

Browse files
committed
Merge branch 'main' into vectorize-groupby-binary
* main: [skip-ci] Add benchmarks for groupby math (pydata#6390)
2 parents 169e51a + 511d36c commit e083827

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

asv_bench/benchmarks/groupby.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ def time_groupby_binary_op_1d(self):
3939
def time_groupby_binary_op_2d(self):
4040
self.ds2d - self.ds2d_mean
4141

42+
def peakmem_groupby_binary_op_1d(self):
43+
self.ds1d - self.ds1d_mean
44+
45+
def peakmem_groupby_binary_op_2d(self):
46+
self.ds2d - self.ds2d_mean
47+
4248

4349
class GroupByDask(GroupBy):
4450
def setup(self, *args, **kwargs):
@@ -66,6 +72,9 @@ def setup(self, *args, **kwargs):
6672
def time_groupby_binary_op_2d(self):
6773
raise NotImplementedError
6874

75+
def peakmem_groupby_binary_op_2d(self):
76+
raise NotImplementedError
77+
6978

7079
class GroupByDaskDataFrame(GroupBy):
7180
"""Run groupby tests using dask DataFrame."""
@@ -82,6 +91,9 @@ def setup(self, *args, **kwargs):
8291
def time_groupby_binary_op_2d(self):
8392
raise NotImplementedError
8493

94+
def peakmem_groupby_binary_op_2d(self):
95+
raise NotImplementedError
96+
8597

8698
class Resample:
8799
def setup(self, *args, **kwargs):
@@ -115,6 +127,12 @@ def time_groupby_binary_op_1d(self):
115127
def time_groupby_binary_op_2d(self):
116128
self.ds2d - self.ds2d_mean
117129

130+
def peakmem_groupby_binary_op_1d(self):
131+
self.ds1d - self.ds1d_mean
132+
133+
def peakmem_groupby_binary_op_2d(self):
134+
self.ds2d - self.ds2d_mean
135+
118136

119137
class ResampleDask(Resample):
120138
def setup(self, *args, **kwargs):

0 commit comments

Comments
 (0)