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
Similar to #6, but has a different set of challenges. To summarize, I would like to be able to provide values to use for benchmarks via keyword arguments:
defbench(data=[0, 10, 10000]):
zeros(data)
When displaying output, benchtoolz should be intelligent enough to use the name of the input if it is given, such as:
I don't know if a dictionary should be supported, because best practice will be to use keyword arguments for simple data, such as someflag=[True, False].
Another variant (pitfall?) to be aware of is if values are pre-initialized in a list, such as:
Similar to #6, but has a different set of challenges. To summarize, I would like to be able to provide values to use for benchmarks via keyword arguments:
When displaying output,
benchtoolz
should be intelligent enough to use the name of the input if it is given, such as:Another way to label input may be to allow a dictionary to be given:
I don't know if a dictionary should be supported, because best practice will be to use keyword arguments for simple data, such as
someflag=[True, False]
.Another variant (pitfall?) to be aware of is if values are pre-initialized in a list, such as:
The text was updated successfully, but these errors were encountered: