You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should update the benchmarks to not include unused asv directives, and we should add to ./ci/code_checks.py a way to identify if unused ones are being used (ideally getting the list of expected directives from asv itself).
Working with @eriknil at PyData NYC 2018 mini-sprints.
I don't think that it's possible to determine whether unused directives are being used. The set of unused asv directives is infinite and includes any attribute on the object that isn't one that is recognized by asv.
Are you proposing limiting the class variables that can be defined?
For example, how is it possible to know that goal_time was intended to be used by asv and isn't just an attribute used by something else on the class?
Some of the directives being used in our benchmarks (
asv_bench/benchmarks/
) are deprecated in asv. e.g. inalgorithms.py
each of the benchmark classes definesgoal_time
(e.g. https://github.com/pandas-dev/pandas/blob/master/asv_bench/benchmarks/algorithms.py#L18), but it looks like asv just ignores that: https://asv.readthedocs.io/en/stable/benchmarks.html#benchmark-attributesWe should update the benchmarks to not include unused asv directives, and we should add to
./ci/code_checks.py
a way to identify if unused ones are being used (ideally getting the list of expected directives fromasv
itself).Originally from #22884 (comment)
@jbrockmendel can you review the issue description and edit if needed please
The text was updated successfully, but these errors were encountered: