Skip to content

Commit 8e715f0

Browse files
committed
Fix benchmarks
1 parent ed390e0 commit 8e715f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmarks/combine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup(self, *args, **kwargs):
1313

1414
@parameterized("kind", ("cohorts", "mapreduce"))
1515
def time_combine(self, kind):
16-
flox.core._npg_combine(
16+
flox.core._grouped_combine(
1717
getattr(self, f"x_chunk_{kind}"),
1818
**self.kwargs,
1919
keepdims=True,
@@ -22,7 +22,7 @@ def time_combine(self, kind):
2222

2323
@parameterized("kind", ("cohorts", "mapreduce"))
2424
def peakmem_combine(self, kind):
25-
flox.core._npg_combine(
25+
flox.core._grouped_combine(
2626
getattr(self, f"x_chunk_{kind}"),
2727
**self.kwargs,
2828
keepdims=True,
@@ -58,4 +58,4 @@ def construct_member(groups):
5858
]
5959

6060
self.x_chunk_cohorts = [construct_member(groups) for groups in [np.array((1, 2, 3, 4))] * 4]
61-
self.kwargs = {"agg": flox.aggregations.mean, "axis": (3,), "group_ndim": 1}
61+
self.kwargs = {"agg": flox.aggregations.mean, "axis": (3,), "neg_axis": (-1,)}

0 commit comments

Comments
 (0)