-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infer benchmark data to use from positional arguments #6
Comments
Maybe keyword arguments that are lists are assumed to be different cases? def bench_zeros(data=[0, 10, 10000]):
zeros(data) # actually gets called with 0, then 10, then 10000 I think IPython's |
Which IPython |
There is in interact function commonly used as a decorator. I guess it's I recommend opening the IPython notebook and then running a single cell from IPython.html.widgets import interact @interact On Sat, Jun 21, 2014 at 11:38 AM, Erik Welch notifications@github.com
|
It is very common to run the same benchmark code with different input. Currently, a separate benchmark is required for each input. I would like to be able to define a single benchmark function, and the prefix of the input data is given by the name of the positional argument:
The results need to be displayed cleanly in the output table. It should also be possible to provide multiple arguments, and all combinations of input should (probably) be benchmarked. I would be happy to begin with only supporting a single positional argument if it makes things easier.
The text was updated successfully, but these errors were encountered: