Skip to content

Commit

Permalink
BENCH: fix issue with UnaryFP benchmark, and reduce parametrization
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Aug 27, 2023
1 parent 59ccb8c commit c459e95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions benchmarks/benchmarks/bench_ufunc_strides.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def time_unary(self, ufunc, stride_in, stride_out, dtype):
ufunc(*self.ufunc_args)

class UnaryFP(_AbstractUnary):
params = [UFUNCS_UNARY, [1, 2, 4], [1, 2, 4], ['e', 'f', 'd']]
params = [[uf for uf in UFUNCS_UNARY if uf != np.invert],
[1, 4],
[1, 2],
['e', 'f', 'd']
]

def setup(self, ufunc, stride_in, stride_out, dtype):
_AbstractUnary.setup(self, ufunc, stride_in, stride_out, dtype)
Expand All @@ -115,7 +119,7 @@ class UnaryFPSpecial(UnaryFP):
class BinaryFP(_AbstractBinary):
params = [
[np.maximum, np.minimum, np.fmax, np.fmin, np.ldexp],
[1, 2, 4], [1, 2, 4], [1, 2, 4], ['f', 'd']
[1, 2], [1, 4], [1, 2, 4], ['f', 'd']
]

class BinaryFPSpecial(BinaryFP):
Expand Down

0 comments on commit c459e95

Please sign in to comment.