diff options
author | Keno Goertz <keno@goertz-berlin.com> | 2017-10-07 23:15:42 +0200 |
---|---|---|
committer | Keno Goertz <keno@goertz-berlin.com> | 2017-10-11 09:22:56 +0200 |
commit | acae8a4351885c777671be8dfd3cd7a7034b0731 (patch) | |
tree | 9fce748189e87a174a393035c848208892a211ed /benchmarks | |
parent | 6af2c42992f872233489ad00c5ac06ce5a430022 (diff) | |
download | numpy-acae8a4351885c777671be8dfd3cd7a7034b0731.tar.gz |
BENCH: Added missing ufunc benchmarks
Added divmod, float_power, heaviside, is_nat and positive
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/benchmarks/bench_ufunc.py | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/benchmarks/benchmarks/bench_ufunc.py b/benchmarks/benchmarks/bench_ufunc.py index 8f7d638b5..1d4e70a3a 100644 --- a/benchmarks/benchmarks/bench_ufunc.py +++ b/benchmarks/benchmarks/bench_ufunc.py @@ -5,22 +5,20 @@ from .common import Benchmark, get_squares_ import numpy as np -ufuncs = ['abs', 'absolute', 'add', 'arccos', 'arccosh', 'arcsin', - 'arcsinh', 'arctan', 'arctan2', 'arctanh', 'bitwise_and', - 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'cbrt', 'ceil', - 'conj', 'conjugate', 'copysign', 'cos', 'cosh', 'deg2rad', - 'degrees', 'divide', 'equal', 'exp', 'exp2', 'expm1', - 'fabs', 'floor', 'floor_divide', 'fmax', 'fmin', 'fmod', - 'frexp', 'greater', 'greater_equal', 'hypot', 'invert', - 'isfinite', 'isinf', 'isnan', 'ldexp', 'left_shift', 'less', - 'less_equal', 'log', 'log10', 'log1p', 'log2', 'logaddexp', - 'logaddexp2', 'logical_and', 'logical_not', 'logical_or', - 'logical_xor', 'maximum', 'minimum', 'mod', 'modf', - 'multiply', 'negative', 'nextafter', 'not_equal', 'power', - 'rad2deg', 'radians', 'reciprocal', 'remainder', - 'right_shift', 'rint', 'sign', 'signbit', 'sin', 'sinh', - 'spacing', 'sqrt', 'square', 'subtract', 'tan', 'tanh', - 'true_divide', 'trunc'] +ufuncs = ['abs', 'absolute', 'add', 'arccos', 'arccosh', 'arcsin', 'arcsinh', + 'arctan', 'arctan2', 'arctanh', 'bitwise_and', 'bitwise_not', + 'bitwise_or', 'bitwise_xor', 'cbrt', 'ceil', 'conj', 'conjugate', + 'copysign', 'cos', 'cosh', 'deg2rad', 'degrees', 'divide', 'divmod', + 'equal', 'exp', 'exp2', 'expm1', 'fabs', 'float_power', 'floor', + 'floor_divide', 'fmax', 'fmin', 'fmod', 'frexp', 'greater', + 'greater_equal', 'heaviside', 'hypot', 'invert', 'isfinite', 'isinf', + 'isnan', 'isnat', 'ldexp', 'left_shift', 'less', 'less_equal', 'log', + 'log10', 'log1p', 'log2', 'logaddexp', 'logaddexp2', 'logical_and', + 'logical_not', 'logical_or', 'logical_xor', 'maximum', 'minimum', + 'mod', 'modf', 'multiply', 'negative', 'nextafter', 'not_equal', + 'positive', 'power', 'rad2deg', 'radians', 'reciprocal', 'remainder', + 'right_shift', 'rint', 'sign', 'signbit', 'sin', 'sinh', 'spacing', + 'sqrt', 'square', 'subtract', 'tan', 'tanh', 'true_divide', 'trunc'] for name in dir(np): if isinstance(getattr(np, name, None), np.ufunc) and name not in ufuncs: |