Skip to content
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

Make _NUM_REPEATS configurable #2

Closed
bsipocz opened this issue Oct 14, 2020 · 2 comments
Closed

Make _NUM_REPEATS configurable #2

bsipocz opened this issue Oct 14, 2020 · 2 comments
Assignees

Comments

@bsipocz
Copy link

bsipocz commented Oct 14, 2020

I'm playing with this tool, it seems super useful. Thanks!

However, it would be great if there would be more options to configure the nuances, e.g I have some functions that are expected to run for a long time, thus it would be nice to be able to easily configure _NUM_REPEATS

@droyed droyed self-assigned this Oct 14, 2020
@droyed
Copy link
Owner

droyed commented Oct 15, 2020

@bsipocz That was a great suggestion! Check out the new release 0.0.5. Specifically, now you can do benchit.setparams(rep=1). So, it will use timeit.repeat for 1 time instead of 5 times as it usually does. There's also timeout arg with it to play around with.

@bsipocz
Copy link
Author

bsipocz commented Oct 15, 2020

Wow, this is lightning fast turnaround. Thank you!

@bsipocz bsipocz closed this as completed Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants